i965: Fix return type of translate_tex_format()
It returns an isl_format, not GLuint BRW_FORMAT. I updated every translate_tex_format() found by git-grep. No change in behavior. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
77e3c836f8
commit
de69002faa
|
@ -209,9 +209,9 @@ enum isl_format brw_isl_format_for_mesa_format(mesa_format mesa_format);
|
|||
|
||||
GLuint translate_tex_target(GLenum target);
|
||||
|
||||
GLuint translate_tex_format(struct brw_context *brw,
|
||||
mesa_format mesa_format,
|
||||
GLenum srgb_decode);
|
||||
enum isl_format translate_tex_format(struct brw_context *brw,
|
||||
mesa_format mesa_format,
|
||||
GLenum srgb_decode);
|
||||
|
||||
int brw_get_texture_swizzle(const struct gl_context *ctx,
|
||||
const struct gl_texture_object *t);
|
||||
|
|
|
@ -513,7 +513,7 @@ brw_render_target_supported(struct brw_context *brw,
|
|||
return brw->format_supported_as_render_target[format];
|
||||
}
|
||||
|
||||
GLuint
|
||||
enum isl_format
|
||||
translate_tex_format(struct brw_context *brw,
|
||||
mesa_format mesa_format,
|
||||
GLenum srgb_decode)
|
||||
|
|
|
@ -557,8 +557,8 @@ brw_update_texture_surface(struct gl_context *ctx,
|
|||
brw_get_texture_swizzle(&brw->ctx, obj));
|
||||
|
||||
mesa_format mesa_fmt = plane == 0 ? intel_obj->_Format : mt->format;
|
||||
unsigned format = translate_tex_format(brw, mesa_fmt,
|
||||
sampler->sRGBDecode);
|
||||
enum isl_format format = translate_tex_format(brw, mesa_fmt,
|
||||
sampler->sRGBDecode);
|
||||
|
||||
/* Implement gen6 and gen7 gather work-around */
|
||||
bool need_green_to_blue = false;
|
||||
|
|
Loading…
Reference in New Issue