Skip to content

i915g: fix glClearColor using a 1 byte color format

GKraats requested to merge GKraats/mesa_alu:clearcol into main

Unscissored glClearColor is using i915_fill_blit(). Clearing can be done with the 1 byte formats GL_ALPHA, GL_LUMINANCE or GL_INTENSITY. Routine i915_fill_blit() is called with a rgba-mask containing 1 byte, but it is handling this as a 2-byte color. This fix adds the needed 1 byte setup to both i915_fill_blit() and i915_copy_blit().

It solves 1 piglit-test concerning arb_clear_texture-base-formats and 15 tests concerning fbo-clear-formats.

No regression is shown at other piglit-tests.

Merge request reports

Loading