diff options
author | Kristian H. Kristensen <[email protected]> | 2019-03-27 15:31:49 -0700 |
---|---|---|
committer | Kristian H. Kristensen <[email protected]> | 2019-03-28 10:26:32 -0700 |
commit | 107a8ec3b331f0b9bbaa489689ffd080100ef6e9 (patch) | |
tree | d5e697fda78e0062af3c67a7e5522b1cf935538a /src/freedreno/ir3/ir3.c | |
parent | f30d4a1ccaece3578fb92d245cc44a5c7dccdd7d (diff) |
freedreno/ir3: Add workaround for VS samgq
This instruction needs a workaround when used from vertex shaders.
Fixes:
dEQP-GLES3.functional.shaders.texture_functions.texturegradoffset.sampler2dshadow_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegradoffset.sampler3d_fixed_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegradoffset.sampler3d_float_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgradoffset.sampler2dshadow_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgradoffset.sampler3d_fixed_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgradoffset.sampler3d_float_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgrad.sampler2dshadow_vertex
Signed-off-by: Kristian H. Kristensen <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/ir3/ir3.c')
-rw-r--r-- | src/freedreno/ir3/ir3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c index 1bded7dd122..8c7410a8213 100644 --- a/src/freedreno/ir3/ir3.c +++ b/src/freedreno/ir3/ir3.c @@ -46,11 +46,12 @@ void * ir3_alloc(struct ir3 *shader, int sz) } struct ir3 * ir3_create(struct ir3_compiler *compiler, - unsigned nin, unsigned nout) + gl_shader_stage type, unsigned nin, unsigned nout) { struct ir3 *shader = rzalloc(compiler, struct ir3); shader->compiler = compiler; + shader->type = type; shader->ninputs = nin; shader->inputs = ir3_alloc(shader, sizeof(shader->inputs[0]) * nin); |