Bug 31226 - [llvmpipe] piglit glsl-[fs|vs]-vec4-indexing-dst* fail with llvm-2.6
Summary: [llvmpipe] piglit glsl-[fs|vs]-vec4-indexing-dst* fail with llvm-2.6
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Brian Paul
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 14:07 UTC by Vinson Lee
Modified: 2011-03-15 12:45 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
glsl-fs-vec4-indexing-temp-dst.png (5.13 KB, image/png)
2010-10-29 14:07 UTC, Vinson Lee
Details
glsl-fs-vec4-indexing-temp-dst-in-loop.png (5.15 KB, image/png)
2010-10-29 14:08 UTC, Vinson Lee
Details
glsl-fs-vec4-indexing-temp-dst-in-nested-loop-combined.png (5.15 KB, image/png)
2010-10-29 14:08 UTC, Vinson Lee
Details

Description Vinson Lee 2010-10-29 14:07:43 UTC
Created attachment 39887 [details]
glsl-fs-vec4-indexing-temp-dst.png

mesa: cff1aeea10c6d8520cbb17381d81a684b2e9408b (master)

The piglit glsl-fs-vec4-indexing-dst* fail on llvmpipe but pass on swrast and softpipe.


All the tests exhibit this warning.
WARNING: LLVM scatter store of temp regs not implemented


$ ./bin/shader_runner tests/shaders/glsl-fs-vec4-indexing-temp-dst.shader_test
Probe at (15,15)
  Expected: 0.600000 0.600000 0.700000
  Observed: 0.101961 0.200000 0.200000
Probe at (35,15)
  Expected: 0.600000 0.600000 0.600000
  Observed: 0.101961 0.200000 0.200000
Probe at (55,15)
  Expected: 0.500000 0.700000 0.700000
  Observed: 0.101961 0.200000 0.200000
Probe at (75,15)
  Expected: 0.600000 0.700000 0.600000
  Observed: 0.101961 0.200000 0.200000


$ ./bin/shader_runner tests/shaders/glsl-fs-vec4-indexing-temp-dst-in-loop.shader_test
Probe at (35,15)
  Expected: 0.700000 0.800000 0.800000
  Observed: 0.800000 0.800000 1.000000
Probe at (55,15)
  Expected: 0.800000 0.600000 0.800000
  Observed: 0.800000 0.800000 1.000000
Probe at (75,15)
  Expected: 0.900000 0.600000 0.600000
  Observed: 0.800000 0.800000 1.000000
Probe at (95,15)
  Expected: 0.800000 0.400000 0.600000
  Observed: 0.800000 0.800000 1.000000
Probe at (115,15)
  Expected: 0.900000 0.200000 0.400000
  Observed: 0.800000 0.800000 1.000000
Probe at (135,15)
  Expected: 0.800000 0.200000 0.200000
  Observed: 0.800000 0.800000 1.000000
Probe at (155,15)
  Expected: 0.900000 0.200000 0.200000
  Observed: 0.800000 0.800000 1.000000
Probe at (175,15)
  Expected: 0.800000 0.000000 0.000000
  Observed: 0.800000 0.800000 1.000000


$ ./bin/shader_runner tests/shaders/glsl-fs-vec4-indexing-temp-dst-in-nested-loop-combined.shader_test
Probe at (35,15)
  Expected: 0.425000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (55,15)
  Expected: 0.475000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (75,15)
  Expected: 0.550000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (95,15)
  Expected: 0.700000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (115,15)
  Expected: 0.900000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (135,15)
  Expected: 1.000000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (155,15)
  Expected: 0.925000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (175,15)
  Expected: 0.500000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (195,15)
  Expected: 0.700000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Probe at (215,15)
  Expected: 1.000000 0.500000 0.500000
  Observed: 0.400000 0.501961 0.501961
Comment 1 Vinson Lee 2010-10-29 14:08:22 UTC
Created attachment 39888 [details]
glsl-fs-vec4-indexing-temp-dst-in-loop.png
Comment 2 Vinson Lee 2010-10-29 14:08:50 UTC
Created attachment 39889 [details]
glsl-fs-vec4-indexing-temp-dst-in-nested-loop-combined.png
Comment 3 Brian Paul 2010-11-04 10:54:46 UTC
Should be fixed with Mesa commit e7f5d19a1106351f2db8f62f59f51be86eaa93df, but only when using LLVM 2.7 or later.  There seems to be a bug in LLVM 2.6 that's hit by this test.

Vinson, I'll leave it up to you to either close this bug or update the summary to be "LLVM 2.6".
Comment 4 Vinson Lee 2010-11-08 14:32:25 UTC
mesa: 6bf0ac0916bf09e049b378d94478035072efed53 (master)

Verified fixed for llvm-2.7, llvm-2.8, and llvm-2.9svn.

The piglit glsl-[fs|vs]-indexing-temp-dst* tests still fail with llvm-2.6. Updated the bug title to indicate failures are only with llvm-2.6.

This bug can be closed when llvmpipe no longer supports llvm-2.6.
Comment 5 Jose Fonseca 2011-03-15 12:45:14 UTC
It's still possible to build llvmpipe against llvm 2.6, but it's not worth our while chasing the bug for llvm 2.6.

I already updated mesa/src/gallium/drivers/llvmpipe/README to recommend LLVM 2.8.

I think we can close this now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.