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" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
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;
}
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;