freedreno/ir3/nir: set first_driver_param
authorRob Clark <robclark@freedesktop.org>
Mon, 6 Apr 2015 14:54:30 +0000 (10:54 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 11 Apr 2015 15:39:56 +0000 (11:39 -0400)
Without this, a3xx breaks.. a4xx would too if it had already implemented
support for passing driver params.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index fdf814f26eec720de973fc4f5266ad1ad77fe938..aa5b5f77ad0bdfac1448721a4666faf94c3dfd2c 100644 (file)
@@ -244,6 +244,8 @@ compile_init(struct ir3_shader_variant *so,
                free((void *)lowered_tokens);
 
        so->first_immediate = ctx->s->num_uniforms;
+       /* for now, now driver params: */
+       so->first_driver_param = so->first_immediate;
 
        return ctx;
 }