Bug 10913

Summary: vector_program implement wrong with EX2 instruction
Product: Mesa Reporter: WuNian <nian.wu>
Component: Mesa coreAssignee: mesa-dev
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: wei.z.wang
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description WuNian 2007-05-11 00:30:33 UTC
Call glProgramStringARB with instruction EX2, then draw a point, the result texture got in feedback mode is incorrect.
Comment 1 WuNian 2007-05-11 00:30:56 UTC
Created attachment 9922 [details]
test case
Comment 2 Brian Paul 2007-05-11 07:42:35 UTC
The problem was texcoords returned by feedback were getting divided by Q, i.e. (s/q, t/q, r/q, 1.0).  Evidently, that's incorrect and texcoords should be returned unprojected.
Fixed in git.
Comment 3 Brian Paul 2007-05-11 08:25:42 UTC
Oh, one other comment about your test program.  The vertex program doesn't write to 'result.position'.  Off-hand I don't recall what the GL_ARB_v_p spec says about that, but if the position is undefined, the vertex/GL_POINT may get clipped away and produce no feedback at all.
Comment 4 Adam Jackson 2009-08-24 12:26:45 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.