All of lore.kernel.org
 help / color / mirror / Atom feed
* nv1x 3d fix/workaround for Q3 demo
@ 2011-07-09 15:22 Andrew Randrianasulu
       [not found] ` <201107091522.36407.randrianasulu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Randrianasulu @ 2011-07-09 15:22 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Hello. I have nv18 card in my machine currently.

It works with kernel 3.0.0.-rc6 (i need to pass nouveau.tv_disable=1 parameter 
to module, because uothervise it thinks i have TV connected, while in fact I 
have only VGA CRT monitor connected)

Mesa 3d driver (7.12-devel (git-067c9d7)), on other hand, has few problems, 
most obvious was wrong colors in Q3 demo menus (blue instead of red). swrast 
worked fine. After some digging (for example, deactivating 
EXT_compiled_vertex_array workarounds this bug, like disabling  "OpenGL 
Extensions" from game menu completely) i found that this patch makes colors 
fine:

diff --git a/src/mesa/drivers/dri/nouveau/nv10_render.c 
b/src/mesa/drivers/dri/nouveau/nv10_render.c
index 20fb447..7e28229 100644
--- a/src/mesa/drivers/dri/nouveau/nv10_render.c
+++ b/src/mesa/drivers/dri/nouveau/nv10_render.c
@@ -99,7 +99,8 @@ get_hw_format(int type)
        case GL_UNSIGNED_SHORT:
                return NV10_3D_VTXBUF_FMT_TYPE_V16_SNORM;
        case GL_UNSIGNED_BYTE:
-               return NV10_3D_VTXBUF_FMT_TYPE_B8G8R8A8_UNORM;
+               // return NV10_3D_VTXBUF_FMT_TYPE_B8G8R8A8_UNORM;
+               return NV10_3D_VTXBUF_FMT_TYPE_U8_UNORM;
        default:
                assert(0);
        }

Any idea if NV10_3D_VTXBUF_FMT_TYPE_B8G8R8A8_UNORM has any good on BE 
machines? Or any other use in OpenGL subset, implemented in nv1x class 
silicon?

I have more failed stuff, like non-working demos/reflect and demos/dinoshade 
(probably stencil/z mixup or wrong format?), missing teapot in 
demos/fbotexture (but fbo_firecube works fine), lockup in demos/engine after  
I activated wireframe mode, and probably many others. But I'm very happy to 
have this small victory over 3D in just few hours.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: nv1x 3d fix/workaround for Q3 demo
       [not found] ` <201107091522.36407.randrianasulu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2011-07-11 20:14   ` Christoph Bumiller
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Bumiller @ 2011-07-11 20:14 UTC (permalink / raw)
  To: Andrew Randrianasulu; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On 07/09/2011 05:22 PM, Andrew Randrianasulu wrote:
> Hello. I have nv18 card in my machine currently.
> 
> It works with kernel 3.0.0.-rc6 (i need to pass nouveau.tv_disable=1 parameter 
> to module, because uothervise it thinks i have TV connected, while in fact I 
> have only VGA CRT monitor connected)
> 
> Mesa 3d driver (7.12-devel (git-067c9d7)), on other hand, has few problems, 
> most obvious was wrong colors in Q3 demo menus (blue instead of red). swrast 
> worked fine. After some digging (for example, deactivating 
> EXT_compiled_vertex_array workarounds this bug, like disabling  "OpenGL 
> Extensions" from game menu completely) i found that this patch makes colors 
> fine:
> 
> diff --git a/src/mesa/drivers/dri/nouveau/nv10_render.c 
> b/src/mesa/drivers/dri/nouveau/nv10_render.c
> index 20fb447..7e28229 100644
> --- a/src/mesa/drivers/dri/nouveau/nv10_render.c
> +++ b/src/mesa/drivers/dri/nouveau/nv10_render.c
> @@ -99,7 +99,8 @@ get_hw_format(int type)
>         case GL_UNSIGNED_SHORT:
>                 return NV10_3D_VTXBUF_FMT_TYPE_V16_SNORM;
>         case GL_UNSIGNED_BYTE:
> -               return NV10_3D_VTXBUF_FMT_TYPE_B8G8R8A8_UNORM;
> +               // return NV10_3D_VTXBUF_FMT_TYPE_B8G8R8A8_UNORM;
> +               return NV10_3D_VTXBUF_FMT_TYPE_U8_UNORM;
>         default:
>                 assert(0);
>         }
> 

Thanks, pushed.
(http://cgit.freedesktop.org/mesa/mesa/commit/?id=a09b7f7f150d1687a614fd59cf09ec5e3c3a13fd)


> Any idea if NV10_3D_VTXBUF_FMT_TYPE_B8G8R8A8_UNORM has any good on BE 
> machines? Or any other use in OpenGL subset, implemented in nv1x class 
> silicon?
> 
> I have more failed stuff, like non-working demos/reflect and demos/dinoshade 
> (probably stencil/z mixup or wrong format?), missing teapot in 
> demos/fbotexture (but fbo_firecube works fine), lockup in demos/engine after  
> I activated wireframe mode, and probably many others. But I'm very happy to 
> have this small victory over 3D in just few hours.
> 
> _______________________________________________
> Nouveau mailing list
> Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-11 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-09 15:22 nv1x 3d fix/workaround for Q3 demo Andrew Randrianasulu
     [not found] ` <201107091522.36407.randrianasulu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-07-11 20:14   ` Christoph Bumiller

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.