[Mesa-dev] [PATCH 01/10] i965: Use constant miptree pointer in tex surface setup
Topi Pohjolainen
topi.pohjolainen at intel.com
Wed Jul 1 04:46:31 PDT 2015
as it is only used for reading.
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/mesa/drivers/dri/i965/brw_context.h | 2 +-
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 2 +-
src/mesa/drivers/dri/i965/gen8_surface_state.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 3553f6e..ae29798 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -990,7 +990,7 @@ struct brw_context
uint32_t surf_index);
void (*emit_texture_surface_state)(struct brw_context *brw,
- struct intel_mipmap_tree *mt,
+ const struct intel_mipmap_tree *mt,
GLenum target,
unsigned min_layer,
unsigned max_layer,
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
index 15ab2b0..494bc22 100644
--- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
@@ -265,7 +265,7 @@ gen7_emit_buffer_surface_state(struct brw_context *brw,
static void
gen7_emit_texture_surface_state(struct brw_context *brw,
- struct intel_mipmap_tree *mt,
+ const struct intel_mipmap_tree *mt,
GLenum target,
unsigned min_layer, unsigned max_layer,
unsigned min_level, unsigned max_level,
diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c
index b2d1a57..c595ec3 100644
--- a/src/mesa/drivers/dri/i965/gen8_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c
@@ -184,7 +184,7 @@ gen8_emit_buffer_surface_state(struct brw_context *brw,
static void
gen8_emit_texture_surface_state(struct brw_context *brw,
- struct intel_mipmap_tree *mt,
+ const struct intel_mipmap_tree *mt,
GLenum target,
unsigned min_layer, unsigned max_layer,
unsigned min_level, unsigned max_level,
--
1.9.3
More information about the mesa-dev
mailing list