i965: Use constant pointer when checking for compression

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com>
This commit is contained in:
Topi Pohjolainen 2015-12-07 21:58:33 +02:00
parent 85fab1f09a
commit 3c432d48bf
2 changed files with 2 additions and 2 deletions

View file

@ -1573,7 +1573,7 @@ void brw_upload_image_surfaces(struct brw_context *brw,
/* brw_surface_formats.c */
bool brw_render_target_supported(struct brw_context *brw,
struct gl_renderbuffer *rb);
bool brw_losslessly_compressible_format(struct brw_context *brw,
bool brw_losslessly_compressible_format(const struct brw_context *brw,
uint32_t brw_format);
uint32_t brw_depth_format(struct brw_context *brw, mesa_format format);
mesa_format brw_lower_mesa_image_format(const struct brw_device_info *devinfo,

View file

@ -824,7 +824,7 @@ brw_render_target_supported(struct brw_context *brw,
* compression.
*/
bool
brw_losslessly_compressible_format(struct brw_context *brw,
brw_losslessly_compressible_format(const struct brw_context *brw,
uint32_t brw_format)
{
const struct surface_format_info * const sinfo =