Bug 52957

Summary: [r200] piglit glean/vp1-LIT test 2 (degenerate case: 0 ^ 0 -> 1) test fails
Product: Mesa Reporter: Barto <mister.freeman>
Component: Drivers/DRI/r200Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: 8.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Barto 2012-07-30 10:01:21 UTC
System configuration :

- radeon 9000 AGP ( M9, rv250 )
- laptop pentium 4 2.4 Ghz 1.25 Gb ram
- archlinux 32 bits

Step to reproduce the bug

- mesa 8.0.4 release ( but the bug occurs also with the git version )
- a graphic card who uses the r200 driver 
- install piglit ( git version )
- run the glean test "vp1-LIT test 2 (degenerate case: 0 ^ 0 -> 1)" in piglit :

./piglit-run.py  -t "glean/vp1-LIT test 2 (degenerate case" tests/quick.tests results/quick

the glean/vp1-LIT test 2 (degenerate case: 0 ^ 0 -> 1) will fail with this error message :

Vertex Program test 1: test a specific set of vertex programs.

FAILURE:
  Program: LIT test 2 (degenerate case: 0 ^ 0 -> 1)
  Expected color: 1, 0.65, 1, 1
  Observed color: 1, 0.65098, 0, 1
vertProg1:  FAIL rgba8, db, z24, s8, win+pmap, id 33
	3 tests passed, 1 tests failed.
Comment 1 Roland Scheidegger 2012-07-30 14:19:43 UTC
This is due to differences in LIT opcode between DX and OGL. AFAIK the chip can only do the DX version (there's no documentation for this part of the chip, but r300 could only do this too). Hence to make this opcode work correctly, complicated workarounds might be needed - given the chip limits (program length etc.) these might do more wrong than good. So unless you find some real app where this is a problem noone will bother - not that many programs can use vertex programs on r200 anyway since often new render paths also would require fragment program.

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.