diff options
author | Kenneth Graunke <[email protected]> | 2014-03-21 03:47:16 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-03-24 14:46:05 -0700 |
commit | eccad18bd89556608092278cf46a9aaa4605f163 (patch) | |
tree | 435737f44981ffd2458872a52773707398cc00d6 /src/gallium/targets | |
parent | 630bf288de09e0fcf9734b297042cb751ec38376 (diff) |
i965: For color clears, only disable writes to components that exist.
The SIMD16 replicated FB write message only works if we don't need the
color calculator to mask our framebuffer writes. Previously, we bailed
on it if color_mask wasn't <true, true, true, true>. However, this was
needlessly strict for formats with fewer than four components - only the
components that actually exist matter.
WebGL Aquarium attempts to clear a BGRX texture with the ColorMask set
to <true, true, true, false>. This will work perfectly fine with the
replicated data message; we just bailed unnecessarily.
Improves performance of WebGL Aquarium on Iris Pro (at 1920x1080) by
abound 50%, and Bay Trail (at 1366x768) by over 70% (using Chrome 24).
v2: Use _mesa_format_has_color_component() to properly handle ALPHA
formats (and generally be less fragile).
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Tested-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/gallium/targets')
0 files changed, 0 insertions, 0 deletions