summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2014-12-07 13:42:41 +0100
committerEmil Velikov <[email protected]>2015-01-23 00:47:25 +0000
commit4d04fd08717216df67e8e7b484f4ef9281fc115c (patch)
tree659a8b3fe1112264c14348fd65199a601174512f
parent0727ab961cc2735250c784712dbe24022904c1a9 (diff)
st/nine: Fix sm3 relative addressing for non-debug build
Relative addressing needs the constant buffer to get all the correct constants, even those defined by the shader. The code to copy the shader constants to the constant buffer was enabled only for debug build. Enable it always. Cc: "10.4" <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: David Heidelberg <[email protected]> Signed-off-by: Axel Davy <[email protected]> (cherry picked from commit a721987077ae22e0c373ea118113361aada2024e)
-rw-r--r--src/gallium/state_trackers/nine/nine_state.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 350feb25375..e5c9a36b783 100644
--- a/src/gallium/state_trackers/nine/nine_state.c
+++ b/src/gallium/state_trackers/nine/nine_state.c
@@ -495,7 +495,6 @@ update_vs_constants_userbuf(struct NineDevice9 *device)
state->changed.vs_const_b = 0;
}
-#ifdef DEBUG
if (device->state.vs->lconstf.ranges) {
/* TODO: Can we make it so that we don't have to copy everything ? */
const struct nine_lconstf *lconstf = &device->state.vs->lconstf;
@@ -513,14 +512,11 @@ update_vs_constants_userbuf(struct NineDevice9 *device)
}
cb.user_buffer = dst;
}
-#endif
pipe->set_constant_buffer(pipe, PIPE_SHADER_VERTEX, 0, &cb);
-#ifdef DEBUG
if (device->state.vs->lconstf.ranges)
FREE((void *)cb.user_buffer);
-#endif
if (device->state.changed.vs_const_f) {
struct nine_range *r = device->state.changed.vs_const_f;