Another trivial patch: nouveau classic driver has everything needed for
GL_NV_blend_square, just expose extension. Tested with tests/blendsquare
В сообщении от Monday 01 March 2010 02:25:01 вы написали:
> randrianas...@gmail.com writes:
> > Hello all!
> >
> > After unsuccesfull battle with git-send-email I just send these two
> > patches from Kmail. Botch as attachments and inlin, but inline version
> > probably will be damaged in process.....
>
> Thanks, both patches pushed (after some minor reformatting: please, use
> git-format-patch next time).
>
> > Patch 1: add XRGB8888 into nouveau_fbo.c, makes xmoto actually display
> > its demo, not abort
> >
> > diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
> > b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c index 1db8c5d..8464786
> > 100644
> > --- a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
> > +++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
> > @@ -215,6 +215,8 @@ get_tex_format(struct gl_texture_image *ti)
> > switch (ti->TexFormat) {
> > case MESA_FORMAT_ARGB8888:
> > return GL_RGBA8;
> > + case MESA_FORMAT_XRGB8888:
> > + return GL_RGB8;
> > case MESA_FORMAT_RGB565:
> > return GL_RGB5;
> > default:
> >
> >
> > Patch 2: add two stencil operation cases in nv04_state_raster.c, allow
> > demos/reflect and demos/dinoshade actually work. Dinoshade still visible
> > broken. Not sure about redbook/stencil, it looks very same on my modified
> > driver with TNT2 and with swrast. But tests/stencil definitely wrong ....
> > So, all cases are in, one just need to figure out correct assignment.
> >
> > diff --git a/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
> > b/src/mesa/drivers/dri/nouveau/nv04_state_raster.c index 5e3788d..6d0b262
> > 100644
> > --- a/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
> > +++ b/src/mesa/drivers/dri/nouveau/nv04_state_raster.c
> > @@ -61,6 +61,10 @@ get_stencil_op(unsigned op)
> > switch (op) {
> > case GL_KEEP:
> > return 0x1;
> > + case GL_ZERO:
> > + return 0x2;
> > + case GL_REPLACE:
> > + return 0x3;
> > case GL_INCR:
> > return 0x4;
> > case GL_DECR:
> >
> > -----
> >
> > Tested-off-by: Andrew Randrianasulu <randrianas...@gmail.com>
From 3fa63c169f76c0bd897b6d0c30dc8a3db2f5a759 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <rand...@mail.ru>
Date: Tue, 2 Mar 2010 01:29:14 +0000
Subject: [PATCH] Trivially add GL_NV_blend_square
---
src/mesa/drivers/dri/nouveau/nouveau_context.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c
index 05d408b..8786134 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_context.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c
@@ -55,6 +55,7 @@ static const struct dri_extension nouveau_extensions[] = {
{ "GL_EXT_framebuffer_object", GL_EXT_framebuffer_object_functions },
{ "GL_EXT_stencil_wrap", NULL },
{ "GL_EXT_fog_coord", GL_EXT_fog_coord_functions },
+ { "GL_NV_blend_square", NULL },
{ "GL_SGIS_generate_mipmap", NULL },
{ NULL, NULL }
};
--
1.6.5.4
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev