Lines Matching defs:format

42  * given format.
45 vmw_surface_get_desc(SVGA3dSurfaceFormat format)
47 if (format < ARRAY_SIZE(g_SVGA3dSurfaceDescs))
48 return &g_SVGA3dSurfaceDescs[format];
144 vmw_surface_get_serialized_size(SVGA3dSurfaceFormat format,
149 const SVGA3dSurfaceDesc *desc = vmw_surface_get_desc(format);
168 vmw_surface_get_serialized_size_extended(SVGA3dSurfaceFormat format,
175 vmw_surface_get_serialized_size(format,
192 vmw_surface_get_pixel_offset(SVGA3dSurfaceFormat format,
196 const SVGA3dSurfaceDesc *desc = vmw_surface_get_desc(format);
209 vmw_surface_get_image_offset(SVGA3dSurfaceFormat format,
224 desc = vmw_surface_get_desc(format);
243 * vmw_surface_is_gb_screen_target_format - Is the specified format usable as
247 * @format: format to queried
250 * true if queried format is valid for screen targets
253 vmw_surface_is_gb_screen_target_format(SVGA3dSurfaceFormat format)
255 return (format == SVGA3D_X8R8G8B8 ||
256 format == SVGA3D_A8R8G8B8 ||
257 format == SVGA3D_R5G6B5 ||
258 format == SVGA3D_X1R5G5B5 ||
259 format == SVGA3D_A1R5G5B5 ||
260 format == SVGA3D_P8);
265 * vmw_surface_is_dx_screen_target_format - Is the specified format usable as
269 * @format: format to queried
272 * true if queried format is valid for screen targets
275 vmw_surface_is_dx_screen_target_format(SVGA3dSurfaceFormat format)
277 return (format == SVGA3D_R8G8B8A8_UNORM ||
278 format == SVGA3D_B8G8R8A8_UNORM ||
279 format == SVGA3D_B8G8R8X8_UNORM);
284 * vmw_surface_is_screen_target_format - Is the specified format usable as a
288 * @format: format to queried
291 * true if queried format is valid for screen targets
294 vmw_surface_is_screen_target_format(SVGA3dSurfaceFormat format)
296 if (vmw_surface_is_gb_screen_target_format(format)) {
299 return vmw_surface_is_dx_screen_target_format(format);
371 * @format: The surface format.
379 SVGA3dSurfaceFormat format,
389 cache->desc = desc = vmw_surface_get_desc(format);