From a721987077ae22e0c373ea118113361aada2024e Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sun, 7 Dec 2014 13:42:41 +0100 Subject: 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" Reviewed-by: Ilia Mirkin Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_state.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/gallium/state_trackers/nine') diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index f788a3dae78..b05e67ecd01 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; -- cgit v1.2.3