Lines Matching full:format

48  * given format.
51 vmw_surface_get_desc(SVGA3dSurfaceFormat format) in vmw_surface_get_desc() argument
53 if (format < ARRAY_SIZE(g_SVGA3dSurfaceDescs)) in vmw_surface_get_desc()
54 return &g_SVGA3dSurfaceDescs[format]; in vmw_surface_get_desc()
150 vmw_surface_get_serialized_size(SVGA3dSurfaceFormat format, in vmw_surface_get_serialized_size() argument
155 const SVGA3dSurfaceDesc *desc = vmw_surface_get_desc(format); in vmw_surface_get_serialized_size()
174 vmw_surface_get_serialized_size_extended(SVGA3dSurfaceFormat format, in vmw_surface_get_serialized_size_extended() argument
181 vmw_surface_get_serialized_size(format, in vmw_surface_get_serialized_size_extended()
198 vmw_surface_get_pixel_offset(SVGA3dSurfaceFormat format, in vmw_surface_get_pixel_offset() argument
202 const SVGA3dSurfaceDesc *desc = vmw_surface_get_desc(format); in vmw_surface_get_pixel_offset()
215 vmw_surface_get_image_offset(SVGA3dSurfaceFormat format, in vmw_surface_get_image_offset() argument
230 desc = vmw_surface_get_desc(format); in vmw_surface_get_image_offset()
249 * vmw_surface_is_gb_screen_target_format - Is the specified format usable as
253 * @format: format to queried
256 * true if queried format is valid for screen targets
259 vmw_surface_is_gb_screen_target_format(SVGA3dSurfaceFormat format) in vmw_surface_is_gb_screen_target_format() argument
261 return (format == SVGA3D_X8R8G8B8 || in vmw_surface_is_gb_screen_target_format()
262 format == SVGA3D_A8R8G8B8 || in vmw_surface_is_gb_screen_target_format()
263 format == SVGA3D_R5G6B5 || in vmw_surface_is_gb_screen_target_format()
264 format == SVGA3D_X1R5G5B5 || in vmw_surface_is_gb_screen_target_format()
265 format == SVGA3D_A1R5G5B5 || in vmw_surface_is_gb_screen_target_format()
266 format == SVGA3D_P8); in vmw_surface_is_gb_screen_target_format()
271 * vmw_surface_is_dx_screen_target_format - Is the specified format usable as
275 * @format: format to queried
278 * true if queried format is valid for screen targets
281 vmw_surface_is_dx_screen_target_format(SVGA3dSurfaceFormat format) in vmw_surface_is_dx_screen_target_format() argument
283 return (format == SVGA3D_R8G8B8A8_UNORM || in vmw_surface_is_dx_screen_target_format()
284 format == SVGA3D_B8G8R8A8_UNORM || in vmw_surface_is_dx_screen_target_format()
285 format == SVGA3D_B8G8R8X8_UNORM); in vmw_surface_is_dx_screen_target_format()
290 * vmw_surface_is_screen_target_format - Is the specified format usable as a
294 * @format: format to queried
297 * true if queried format is valid for screen targets
300 vmw_surface_is_screen_target_format(SVGA3dSurfaceFormat format) in vmw_surface_is_screen_target_format() argument
302 if (vmw_surface_is_gb_screen_target_format(format)) { in vmw_surface_is_screen_target_format()
305 return vmw_surface_is_dx_screen_target_format(format); in vmw_surface_is_screen_target_format()
377 * @format: The surface format.
385 SVGA3dSurfaceFormat format, in vmw_surface_setup_cache() argument
395 cache->desc = desc = vmw_surface_get_desc(format); in vmw_surface_setup_cache()