mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
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:
parent
85fab1f09a
commit
3c432d48bf
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue