summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_tex_sample.h
diff options
context:
space:
mode:
authorKrzesimir Nowak <krzesimir@kinvolk.io>2015-09-11 20:07:37 +0200
committerBrian Paul <brianp@vmware.com>2015-09-11 15:36:32 -0600
commitea0fecd1a3f46439c602e04870b34e6f27ad5b2e (patch)
tree40784dac2d067378f771765286506a7c6f6efd12 /src/gallium/drivers/softpipe/sp_tex_sample.h
parent4ca2896e8ea1908ea5a0d5bffe8a1b42145a6f72 (diff)
downloadexternal_mesa3d-ea0fecd1a3f46439c602e04870b34e6f27ad5b2e.zip
external_mesa3d-ea0fecd1a3f46439c602e04870b34e6f27ad5b2e.tar.gz
external_mesa3d-ea0fecd1a3f46439c602e04870b34e6f27ad5b2e.tar.bz2
softpipe: Constify some sampler and view parameters
This is to prepare for making tgsi_sampler parameter in query_lod a const too. These functions do not modify anything in either sampler or view anymore. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_tex_sample.h')
-rw-r--r--src/gallium/drivers/softpipe/sp_tex_sample.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.h b/src/gallium/drivers/softpipe/sp_tex_sample.h
index 6743b7e..e14e4ac 100644
--- a/src/gallium/drivers/softpipe/sp_tex_sample.h
+++ b/src/gallium/drivers/softpipe/sp_tex_sample.h
@@ -88,8 +88,8 @@ typedef void (*mip_filter_func)(struct sp_sampler_view *sp_sview,
float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
-typedef void (*mip_level_func)(struct sp_sampler_view *sp_sview,
- struct sp_sampler *sp_samp,
+typedef void (*mip_level_func)(const struct sp_sampler_view *sp_sview,
+ const struct sp_sampler *sp_samp,
const float lod[TGSI_QUAD_SIZE],
float level[TGSI_QUAD_SIZE]);