Bug 13837

Summary: [GLSL] glean/glsl1 fail: gl_FrontFacing var (1)
Product: Mesa Reporter: Gordon Jin <gordon.jin>
Component: Drivers/DRI/i965Assignee: Zou Nan hai <nanhai.zou>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: high CC: dri-devel, eric, lerui.zhu
Version: git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: implement gl_FrontFacing for 965

Description Gordon Jin 2007-12-28 00:22:05 UTC
System Environment:
--------------------------
Platform: Q965
Arch: 32-bit
Xf86_video_intel:		d9df93578b74785c08ba860b4c9aa23b0c89c91c
Drm:		b9417f41418321d5081547a3a3386dcccae7541f
Mesa:		aac2d99dc316c069faa46dd43ff034155754c6b3
Kernel:		2.6.23
Glean:		Tip of CVS

Bug detailed description:
--------------------------
glean/glsl1 have 3 fails with the latest mesa master. This bug report is targeted for the 1st failure:
FAILURE:
  Shader test: gl_FrontFacing var (1)
  Expected color: 0.5, 0.5, 0.5, 0.5
  Observed color: 0, 0, 0, 0

this happens whether or not INTEL_NO_TTM set.


Reproduce steps:
----------------
run glean case glsl by:
./glean -r ResultDir -t glsl1
Comment 1 Eric Anholt 2008-01-16 13:57:43 UTC
I'm failing to reproduce this one with mesa master on my 965.
Comment 2 Colin.Joe 2008-01-20 19:04:47 UTC
this bug can be produced on latest mesa master . 
Comment 3 Eric Anholt 2008-01-31 20:59:24 UTC
Created attachment 14065 [details] [review]
implement gl_FrontFacing for 965

This was my test patch to try to get gl_FrontFacing to work.  While it gets the test to pass, it breaks fogging for reasons I can't understand.
Comment 4 Zou Nan hai 2008-02-13 17:39:22 UTC
Thanks Eric, 
writemask is not working in align_1 mode, that is why fog is broken.
Fixed in mesa commit 08fd2488b011db78ebf7eafbf6ea61d5444ffe7c
Comment 5 Colin.Joe 2008-02-20 00:06:12 UTC
this bug has been fixed .
Comment 6 Adam Jackson 2009-08-24 12:28:59 UTC
Mass version move, cvs -> git

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.