summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-05-19 09:39:52 -0400
committerRob Clark <[email protected]>2017-05-23 12:26:35 -0400
commit0c2e0f15b8378b79e2706898a61efd54faac5378 (patch)
treee99784b73bb7b98de8477ee4750cff3094a315e5 /src/gallium
parent444b4b40f9d1f09a44128fd78a8cfd84f87fcc5c (diff)
freedreno: only support SSBOs with nir
tgsi_to_nir does not support them. Note that compute shaders already force nir. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index a00afd3fa45..e8ed082a618 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -568,6 +568,9 @@ fd_screen_get_shader_param(struct pipe_screen *pscreen,
switch(shader)
{
case PIPE_SHADER_FRAGMENT:
+ if (!(fd_mesa_debug & FD_DBG_NIR))
+ return 0;
+ /* fallthrough */
case PIPE_SHADER_COMPUTE:
return 24;
default: