From 0c2e0f15b8378b79e2706898a61efd54faac5378 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 19 May 2017 09:39:52 -0400 Subject: [PATCH] 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 --- src/gallium/drivers/freedreno/freedreno_screen.c | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.30.2