From 8ebd0f8317c77bfe0d28923d7f4d66e953e5da01 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 17 Aug 2021 20:54:20 -0700 Subject: [PATCH] i915g: Correct PIPE_SHADER_CAP_MAX_TEMPS. This is the value that i915c reported, too, and is required for ARB_fp. Part-of: --- src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt | 1 - src/gallium/drivers/i915/i915_screen.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt b/src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt index b5ee53f..abb0931 100644 --- a/src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt +++ b/src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt @@ -210,7 +210,6 @@ spec@arb_es2_compatibility@arb_es2_compatibility-drawbuffers,Fail spec@arb_es2_compatibility@texwrap formats bordercolor,Fail spec@arb_es2_compatibility@texwrap formats bordercolor@GL_RGB565- border color only,Fail spec@arb_fragment_program@fp-indirections2,Fail -spec@arb_fragment_program@minmax,Fail spec@arb_fragment_program_shadow@tex-shadow1d,Fail spec@arb_fragment_program_shadow@tex-shadow2d,Fail spec@arb_fragment_program_shadow@tex-shadow2drect,Fail diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index 417f96b..dbe765d 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -238,7 +238,8 @@ i915_get_shader_param(struct pipe_screen *screen, enum pipe_shader_type shader, case PIPE_SHADER_CAP_MAX_CONST_BUFFERS: return 1; case PIPE_SHADER_CAP_MAX_TEMPS: - return 12; /* XXX: 12 -> 32 ? */ + /* 16 inter-phase temps, 3 intra-phase temps. i915c reported 16. too. */ + return 16; case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED: case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED: return 0; -- 2.7.4