From: Rob Clark Date: Fri, 19 May 2017 13:39:52 +0000 (-0400) Subject: freedreno: only support SSBOs with nir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c2e0f15b8378b79e2706898a61efd54faac5378;p=mesa.git 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 --- 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: