From: Emma Anholt Date: Wed, 18 Aug 2021 03:55:37 +0000 (-0700) Subject: i915g: Reduce ARB_fp max tex indirections to match i915c. X-Git-Tag: upstream/22.3.5~19021 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e00a749759bd0e7ed90b4cc675eb9ed6fe5dc69a;p=platform%2Fupstream%2Fmesa.git i915g: Reduce ARB_fp max tex indirections to match i915c. 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 abb0931..0176e2e 100644 --- a/src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt +++ b/src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt @@ -209,7 +209,11 @@ spec@arb_depth_texture@texwrap formats bordercolor@GL_DEPTH_COMPONENT32- border 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 + +# fails at 4 samples (for our 4 supported indirections) because the 1D coordinate workaround +# causes an extra texture indirection phase. spec@arb_fragment_program@fp-indirections2,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 dbe765d..62c9f34 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -226,7 +226,7 @@ i915_get_shader_param(struct pipe_screen *screen, enum pipe_shader_type shader, case PIPE_SHADER_CAP_MAX_TEX_INSTRUCTIONS: return I915_MAX_TEX_INSN; case PIPE_SHADER_CAP_MAX_TEX_INDIRECTIONS: - return 8; + return 4; case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH: return 0; case PIPE_SHADER_CAP_MAX_INPUTS: