summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/haiku/swrast
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-02-20 15:11:49 -0800
committerKenneth Graunke <[email protected]>2015-04-06 13:49:02 -0700
commit797d606127c131a6ccff28150495d2b1f3f7e46e (patch)
tree376706ada2b695f57eaa4dd5c96d7068f8383861 /src/mesa/drivers/haiku/swrast
parent8aee87fe4cce0a883867df3546db0e0a36908086 (diff)
i965: Implement SIMD16 texturing on Gen4.
This allows SIMD16 mode to work for a lot more programs. Texturing is also more efficient in SIMD16 mode than SIMD8. Several messages don't actually exist in SIMD8 mode, so we did SIMD16 messages and threw away half of the data. Now we compute real data in both halves. Also, the SIMD16 "sample" message doesn't require all three coordinate components to exist (like the SIMD8 one), so we can shorten the message lengths, cutting register usage a bit. I chose to implement the visitor functionality in a separate function, since mixing true SIMD16 with SIMD8 code that uses SIMD16 fallbacks seemed like a mess. The new code bails on a few cases where we'd have to do two SIMD8 messages - we just fall back to SIMD8 for now. Improves performance in "Shadowrun: Dragonfall - Director's Cut" by about 20% on GM45 (measured with LIBGL_SHOW_FPS=1 while standing around in the first mission). v2: Add ir_txf to the has_lod case (caught by Jordan Justen). Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/haiku/swrast')
0 files changed, 0 insertions, 0 deletions