Lines Matching refs:format
28 #include "util/format/u_format.h"
242 vgpu10_return_type(enum pipe_format format)
244 if (util_format_is_unorm(format))
246 else if (util_format_is_snorm(format))
248 else if (util_format_is_pure_uint(format))
250 else if (util_format_is_pure_sint(format))
252 else if (util_format_is_float(format))
260 * A helper function to return TRUE if the specified format
261 * is a supported format for sample_c instruction.
264 isValidSampleCFormat(enum pipe_format format)
266 return util_format_is_depth_or_stencil(format);
315 key->tex[i].sampler_return_type = vgpu10_return_type(view->format);
346 /* Apply any special swizzle mask for the view format if needed */
348 svga_translate_texture_buffer_view_format(view->format,
365 * actual device format to cover also imported surface cases.
368 (!util_format_has_alpha(view->format) &&
372 if (view->texture->format == PIPE_FORMAT_DXT1_RGB ||
373 view->texture->format == PIPE_FORMAT_DXT1_SRGB)
376 if (view->format == PIPE_FORMAT_X24S8_UINT ||
377 view->format == PIPE_FORMAT_X32_S8X24_UINT)
386 /* Set the compare_in_shader bit if the view format
387 * is not a supported format for shadow compare.
391 !isValidSampleCFormat(view->format)) {
494 svga_get_texture_datatype(cur_image_view->desc.format);