diff options
author | Axel Davy <[email protected]> | 2014-12-07 13:42:41 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-01-22 22:16:23 +0000 |
commit | a721987077ae22e0c373ea118113361aada2024e (patch) | |
tree | 23fb00357d637a56c8ec69edc3acc3fa0e0071f5 /src | |
parent | 4b7a9cfddb1b8b47aeb2b466f66973d962555542 (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]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_state.c | 4 |
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 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; |