* [Bug 61854] New: [nv50]glClipPlane not clipping correctly for glsl
@ 2013-03-05 12:54 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
[not found] ` <bug-61854-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
0 siblings, 1 reply; 4+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-03-05 12:54 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 2054 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=61854
Priority: medium
Bug ID: 61854
Assignee: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Summary: [nv50]glClipPlane not clipping correctly for glsl
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: bill-xUg5jqCTrWtAfugRpC6u6w@public.gmane.org
Hardware: x86-64 (AMD64)
Status: NEW
Version: git
Component: Drivers/DRI/nouveau
Product: Mesa
Created attachment 75953
--> https://bugs.freedesktop.org/attachment.cgi?id=75953&action=edit
blender file demonstrating FF vs GLSL behavior of glClipPlane
hw: NVIDIA Corporation G80 [GeForce 8800 GTS] (rev a2)
The problem was found using the alt-b clipping border option in blender.
In blender's default scene, press alt-b with the mouse in the 3d view and
"select" part of the cube. It gets clipped properly. However, turn on matcap
(press N to get the properties panel, scroll down and open the display
sub-panel, and turn on "Matcap") and the clipping of the cube will depend on
the viewer's position and angle with respect to the clipping planes. However,
the highlighted wire-frame of the cube is always clipped correctly.
I was told by Ton (blender leader) that blender uses glClipPlane for the
clipping border, and that enabling matcap simply causes blender to use glsl for
the solid rendering.
Although I've included the url to the bug report in blender's bug tracker, I've
also attached the same blend file to this report. For the blend file, turning
off matcap will cause the cube to clip correctly, independently of the viewer's
position and angle. Zooming in a little (mouse wheel) with matcap enabled will
cause the cube's surface to become partially visible, but it will still be
incorrect.
Blender bug tracker url:
http://projects.blender.org/tracker/?func=detail&atid=231&aid=34492&group_id=9
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3653 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 61854] [nv50]glClipPlane not clipping correctly for glsl
[not found] ` <bug-61854-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
@ 2013-03-07 13:01 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-03-07 18:35 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-03-07 19:43 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-03-07 13:01 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 438 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=61854
--- Comment #1 from bill-xUg5jqCTrWtAfugRpC6u6w@public.gmane.org ---
Ok, thank's to calim's help, it turns out that blender wasn't writing to
gl_ClipVertex. However, this is because __GLSL_CG_DATA_TYPES is not defined.
Should nouveau define it? Or is there another define that can be used in
blender's shader?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1157 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 61854] [nv50]glClipPlane not clipping correctly for glsl
[not found] ` <bug-61854-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2013-03-07 13:01 ` [Bug 61854] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-03-07 18:35 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-03-07 19:43 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-03-07 18:35 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 413 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=61854
--- Comment #2 from Christoph Bumiller <e0425955-oe7qfRrRQffzPE21tAIdciO7C/xPubJB@public.gmane.org> ---
__GLSL_CG_DATA_TYPES is an NV blob-specific feature related to Cg. How does
that have anything to do with gl_ClipVertex ? And no, there's no way we're
going to define it with mesa.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1173 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 61854] [nv50]glClipPlane not clipping correctly for glsl
[not found] ` <bug-61854-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2013-03-07 13:01 ` [Bug 61854] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-03-07 18:35 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-03-07 19:43 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-03-07 19:43 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
[-- Attachment #1.1: Type: text/plain, Size: 1119 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=61854
Christoph Bumiller <e0425955-oe7qfRrRQffzPE21tAIdciO7C/xPubJB@public.gmane.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTOURBUG
--- Comment #3 from Christoph Bumiller <e0425955-oe7qfRrRQffzPE21tAIdciO7C/xPubJB@public.gmane.org> ---
blender's shader says:
"gl_ClipVertex works only on NVIDIA graphic cards so we have to check with
__GLSL_CG_DATA_TYPES"
The GL 2.0 spec says:
"If gl ClipVertex is not written by the vertex shader, its value is undefined,
which implies that the results of clipping to any client-defined clip planes are
also undefined."
I don't know with which driver they tested this (maybe on a gallium driver
before gl_ClipVertex was handled, which came rather late ?), but they can't
expect undefined behaviour to work everywhere.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2627 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-07 19:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05 12:54 [Bug 61854] New: [nv50]glClipPlane not clipping correctly for glsl bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
[not found] ` <bug-61854-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2013-03-07 13:01 ` [Bug 61854] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-03-07 18:35 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-03-07 19:43 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.