summaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3/ir3_compiler.h
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2019-03-27 15:31:49 -0700
committerKristian H. Kristensen <[email protected]>2019-03-28 10:26:32 -0700
commit107a8ec3b331f0b9bbaa489689ffd080100ef6e9 (patch)
treed5e697fda78e0062af3c67a7e5522b1cf935538a /src/freedreno/ir3/ir3_compiler.h
parentf30d4a1ccaece3578fb92d245cc44a5c7dccdd7d (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_compiler.h')
-rw-r--r--src/freedreno/ir3/ir3_compiler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_compiler.h b/src/freedreno/ir3/ir3_compiler.h
index 1bc59970c4e..181125fa3b1 100644
--- a/src/freedreno/ir3/ir3_compiler.h
+++ b/src/freedreno/ir3/ir3_compiler.h
@@ -63,6 +63,10 @@ struct ir3_compiler {
* index coordinate:
*/
bool array_index_add_half;
+
+ /* on a6xx, rewrite samgp to sequence of samgq0-3 in vertex shaders:
+ */
+ bool samgq_workaround;
};
struct ir3_compiler * ir3_compiler_create(struct fd_device *dev, uint32_t gpu_id);