freedreno: only support SSBOs with nir
authorRob Clark <robdclark@gmail.com>
Fri, 19 May 2017 13:39:52 +0000 (09:39 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 23 May 2017 16:26:35 +0000 (12:26 -0400)
tgsi_to_nir does not support them.  Note that compute shaders already
force nir.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_screen.c

index a00afd3fa4518ccf4c0f7d68bea5ce05e3c35eb6..e8ed082a6188dfb5d44176cd09537e705b6289b5 100644 (file)
@@ -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: