Bug 32429 - [ILK] gles2: gl_PointCoord takes no effect for point sprites
[ILK] gles2: gl_PointCoord takes no effect for point sprites
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965
Other All
: medium normal
Assigned To: Intel 3D Bugs Mailing List
lu hua
Depends on:
  Show dependency treegraph
Reported: 2010-12-15 18:29 UTC by Hai
Modified: 2015-07-25 03:19 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:

gl_PointCoord takes no effect (1.92 KB, text/plain)
2010-12-15 18:31 UTC, Hai

Note You need to log in before you can comment on or make changes to this bug.
Description Hai 2010-12-15 18:29:28 UTC
System Environment:
Libdrm:		(master)2.4.22-21-g537703fd4805e9cd352965fce642670986822d22
Mesa:		(master)c64447f47de168e82086bc2fb483817b82e59cab
Xserver:		(master)xorg-server-
Xf86_video_intel:		(master)2.13.901-25-g9b967807c2d240488a715509649663aac3583532
Cairo:		(master)d3accefd3b9a4db5f07fb1f7bb05fb4238bf36c1
Kernel:	(drm-intel-fixes) 1b39d6f37622f1da70aa2cfd38bfff9a52c13e05

Bug detailed description:
gl_PointCoord taskes no effect for point sprites. use gl_PointCoord as the gl_FragColor in fragment shader and draw a point, we detect a wrong color. 

Reproduce steps:
build the attachment and run it.
Comment 1 Hai 2010-12-15 18:31:15 UTC
Created attachment 41158 [details]
gl_PointCoord takes no effect
Comment 2 Eric Anholt 2010-12-16 13:48:20 UTC
Please include the chipset name (945GM, 965GM, GM45, Ironlake, Sandybridge) in bug reports.
Comment 3 Hai 2010-12-16 17:47:38 UTC
I tested it with Ironlake. In fact, this bug happens with pineview too.
Comment 4 Eric Anholt 2011-01-08 22:41:49 UTC

*** This bug has been marked as a duplicate of bug 28749 ***
Comment 5 Gordon Jin 2012-10-31 06:39:03 UTC
This still fails on Ironlake and PNV (while passing on SNB/IVB). Reopening since the other bug fixed on all these platforms.
Comment 6 Eric Anholt 2013-02-22 19:06:50 UTC
commit 92a204b493b447b1cbb06a3d2d350a1e6d2c6887
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Feb 20 12:58:47 2013 -0800

    mesa: Fix setup of ctx->Point.PointSprite for GLES2.
Comment 7 lu hua 2013-06-03 08:40:52 UTC
It still exists.
Probe at (124,124)
  Expected: 0.375000 0.375000 0.000000
  Observed: 0.439216 0.560784 0.000000
Probe at (125,125)
  Expected: 0.500000 0.500000 0.000000
  Observed: 0.560784 0.439216 0.000000
PIGLIT: {'result': 'fail' }
Comment 8 Rhys Kidd 2015-07-25 03:19:33 UTC
Are you able to provide a more current testcase (and preferable instructions to compile).

The current one is referring to files no longer present within piglit.