[Mesa-dev] [PATCH 3/5] i965/screen: Make a parameter const

Jason Ekstrand jason at jlekstrand.net
Wed Aug 16 19:30:57 UTC 2017


This gets rid of some compiler warnings.
---
 src/mesa/drivers/dri/i965/intel_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index e97e196..9e65273 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -299,7 +299,7 @@ static const struct {
 
 static bool
 modifier_is_supported(const struct gen_device_info *devinfo,
-                      struct intel_image_format *fmt, int dri_format,
+                      const struct intel_image_format *fmt, int dri_format,
                       uint64_t modifier)
 {
    const struct isl_drm_modifier_info *modinfo =
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list