summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-23 19:18:44 -0700
committerAlyssa Rosenzweig <[email protected]>2019-07-24 17:21:12 -0700
commit31c9fcbd0f045b78ba231d89710bb6ca3275e46a (patch)
treedfb0aedef86151021d82b7c7990275636edb95f0 /src/gallium
parent16fcbb2eba95d0ec04c775894165e964b63d8e6f (diff)
panfrost: Don't expose some atomic stuff even with dEQP
Fixes dEQP crashes. Fixes: 2f93ecd654e ("panfrost: Fake CAPs for dEQP-GLES31") Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/panfrost/pan_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 048d68ad991..294fc456fa1 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -317,9 +317,10 @@ panfrost_get_shader_param(struct pipe_screen *screen,
case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
+ return is_deqp;
case PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS:
case PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTER_BUFFERS:
- return is_deqp;
+ return 0;
case PIPE_SHADER_CAP_TGSI_SKIP_MERGE_REGISTERS:
case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD: