}
+/**
+ * Emit all the constants in a constant buffer for a shader stage.
+ */
static enum pipe_error
-emit_consts(struct svga_context *svga, unsigned offset, unsigned shader)
+emit_consts(struct svga_context *svga, unsigned shader)
{
struct svga_screen *ss = svga_screen(svga->pipe.screen);
struct pipe_transfer *transfer = NULL;
const float (*data)[4] = NULL;
unsigned i;
enum pipe_error ret = PIPE_OK;
+ const unsigned offset = 0;
assert(shader < PIPE_SHADER_TYPES);
const struct svga_fs_compile_key *key = &result->key.fkey;
enum pipe_error ret = PIPE_OK;
- ret = emit_consts( svga, 0, PIPE_SHADER_FRAGMENT );
+ ret = emit_consts( svga, PIPE_SHADER_FRAGMENT );
if (ret != PIPE_OK)
return ret;
/* SVGA_NEW_VS_CONST_BUFFER
*/
- ret = emit_consts( svga, 0, PIPE_SHADER_VERTEX );
+ ret = emit_consts( svga, PIPE_SHADER_VERTEX );
if (ret != PIPE_OK)
return ret;