diff options
author | Tim Rowley <[email protected]> | 2017-02-16 20:28:28 -0800 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-03-20 18:04:53 -0500 |
commit | 1399fbd6fd58de48daa73fa4d7c4585e74277b01 (patch) | |
tree | 69353e3c708b56ac4102f77a98622c6586444671 /src/gallium/drivers | |
parent | ade53519001329938b8d2aef4aa0f563dddfd82d (diff) |
swr: [rasterizer core] Fix RECT_LIST primitive assembly
The bug would make the 3rd component of attributes on the second
triangle of a RECT be invalid.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp b/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp index 6fb37e5d7e1..9c2b8e081ea 100644 --- a/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/pa_avx.cpp @@ -2547,7 +2547,7 @@ void PaRectListSingle0( a[i] = _simd16_extract_ps(a_16[i], 0); b[i] = _simd16_extract_ps(a_16[i], 1); } -} + } else { const simd16vector &b_16 = PaGetSimdVector_simd16(pa, 1, slot); @@ -2574,7 +2574,7 @@ void PaRectListSingle0( case 1: verts[0] = swizzleLane0(a); verts[1] = swizzleLane2(a); - verts[2] = _mm_blend_ps(verts[0], verts[1], 0x2); + verts[2] = _mm_blend_ps(verts[0], verts[1], 0xA); break; case 2: case 3: |