Summary: | Missing support of point size in Mesa core | ||
---|---|---|---|
Product: | Mesa | Reporter: | zhao jian <jian.j.zhao> |
Component: | Mesa core | Assignee: | Yuanhan Liu <yuanhan.liu> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | kenneth |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
zhao jian
2012-02-19 18:26:02 UTC
Those can't be the steps to reproduce the bug. Setting LIBGL_ALWAYS_SOFTWARE=1 forces *everything* to done in software...our driver wouldn't even be loaded! That said, glsl-vs-point-size does seem to be hitting some swrast fallbacks in glReadPixels on Sandybridge/HuronRiver. (In reply to comment #1) > Those can't be the steps to reproduce the bug. Setting LIBGL_ALWAYS_SOFTWARE=1 > forces *everything* to done in software...our driver wouldn't even be loaded! Yes, you are right; our driver will not be loaded. But that's our purpose, since it's a swrast bug. Here is a little background: i915 driver doesn't handle vs itself, instead tnl will handle it. Thus i915 can't handle the point size specified in vertex shader by gl_PointSize builtin variable. So, what we can do is only to fix the issue in tnl and it's a swrast issue. I sent out a patch to fix this issue, would you mind please review it? http://lists.freedesktop.org/archives/mesa-dev/2012-February/019231.html > > That said, glsl-vs-point-size does seem to be hitting some swrast fallbacks in > glReadPixels on Sandybridge/HuronRiver. Ah! I misunderstood, sorry. I thought that the report was saying there was a software fallback. But you're right, it is broken in swrast. Sure, I'll take a look at your patch. Yuanhan, thanks for your help for the explanation. And it is exactly why I file this bug. Hope you guys can fix it soon. Thanks. Fixed by the following commit: --- commit 9962280c332aba4b945b73ae19862041a7053a71 Author: Yuanhan Liu <yuanhan.liu@linux.intel.com> Date: Thu Feb 23 14:19:18 2012 +0800 tnl: let _TNL_ATTRIB_POINTSIZE do not depend on ctx->VertexProgram._Enabled We may specify the point size in a glsl vertex shader. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46311 piglit: glsl-vs-point-size NOTE: This is a candidate for stable release branches. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> (In reply to comment #5) > Fixed by the following commit: > > --- > commit 9962280c332aba4b945b73ae19862041a7053a71 > Author: Yuanhan Liu <yuanhan.liu@linux.intel.com> > Date: Thu Feb 23 14:19:18 2012 +0800 > > tnl: let _TNL_ATTRIB_POINTSIZE do not depend on ctx->VertexProgram._Enabled > > We may specify the point size in a glsl vertex shader. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46311 > piglit: glsl-vs-point-size > > NOTE: This is a candidate for stable release branches. > > Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> > Reviewed-by: Brian Paul <brianp@vmware.com> Verified on Piketon with newest code on mesa master(058fc6521e3b....). |
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.