From 39fe9f5e2fcde043f5aaab26e894f6c2e734ba97 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 23 Jul 2019 16:40:42 -0700 Subject: panfrost: Expose NIR as our PIPE_SHADER_CAP_SUPPORTED_IRS We *could* expose TGSI as well -- we pipe it through tgsi_to_nir for Gallium-internal shaders anyway -- but we'd rather not. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 10f6169b336..172539b5c67 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -320,7 +320,7 @@ panfrost_get_shader_param(struct pipe_screen *screen, return PIPE_SHADER_IR_NIR; case PIPE_SHADER_CAP_SUPPORTED_IRS: - return 0; + return (1 << PIPE_SHADER_IR_NIR); case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT: return 32; -- cgit v1.2.3