i965: Use constant pointer when checking for compression
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 7 Dec 2015 19:58:33 +0000 (21:58 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 10 Feb 2016 07:10:45 +0000 (09:10 +0200)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_surface_formats.c

index 55d6723eab7511eb3bc4c300742c9685cc86eb8a..5c63b8f36c66b4c41aa73b3fdfa2ab6e841b5a5a 100644 (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,
index b5c1a3531c21ca63b7da056b70cf07cd0ed5debf..3c0b23b4a42639c207789ef94ad9f7eae629f3c0 100644 (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 =