From: Emma Anholt Date: Wed, 18 Aug 2021 03:54:20 +0000 (-0700) Subject: i915g: Correct PIPE_SHADER_CAP_MAX_TEMPS. X-Git-Tag: upstream/22.3.5~19022 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ebd0f8317c77bfe0d28923d7f4d66e953e5da01;p=platform%2Fupstream%2Fmesa.git i915g: Correct PIPE_SHADER_CAP_MAX_TEMPS. This is the value that i915c reported, too, and is required for ARB_fp. Part-of: --- 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;