[Mesa3d-dev] [PATCH 1/4] nouveau/nv04: very primitive line/point render

2010-03-09 Thread randrianasulu
ering functions, it will be much less fun to code all those fixups in driver, so, t_dd_tritmp.h calling . From 1848ef2fc2b25a49e555c5f23694b9df590756b2 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Tue, 9 Mar 2010 06:24:16 + Subject: [PATCH 1/4] nouveau/nv04: very primitive

[Mesa3d-dev] [PATCH 1/2] nouveau/nv04: very primitive line/point render

2010-03-09 Thread randrianasulu
This time it renders progs/demos/bounce and progs/samples/sphere correctly. From 1848ef2fc2b25a49e555c5f23694b9df590756b2 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Tue, 9 Mar 2010 06:24:16 + Subject: [PATCH 1/2] nouveau/nv04: very primitive line/point render --- src/mesa

[Mesa3d-dev] nv04 line emulation - closer to working version

2010-03-07 Thread randrianasulu
Francisco, thanks for your help. It draws lines! But code as-is of cource not acceptable, i need to shrink it a lot and cleanup Thanks for initial idea, i'm very bad C coder, but even me can sometimes code something! diff --git a/src/mesa/drivers/dri/nouveau/nv04_render.c b/src/mesa/drivers/

Re: [Mesa3d-dev] Probably, i monkeyed in wrong direction .....

2010-03-07 Thread randrianasulu
> Stephane New patch is here, tested with trivial/tri, DANGEROUS, may lock up your machine hard with anything else! Strange thing about code - in function swtnl_render_triangles_verts it was going on and on, causing segfault, until i added if (count == 3) { swtnl_triangle(c

[Mesa3d-dev] [PATCH] nouveau/nv04: GL_EXT_secondary_color (v2)

2010-03-07 Thread randrianasulu
git apply has automatic whitespace fixup mode .. From 4123a117eb53ba466a174ed0fbf53d9917adcae5 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Sun, 7 Mar 2010 18:22:15 + Subject: [PATCH] nouveau/nv04: GL_EXT_secondary_color (v2) applied with whitespace fixes. Still on top of

[Mesa3d-dev] [PATCH] nouveau/nv04: GL_EXT_secondary_color

2010-03-07 Thread randrianasulu
Requres updated libdrm header (nouveau_class.h) Tested with progs/demos/spectex and progs/tests/seccol From 2b709f31c8ba35b1a40279203493baa8fa584e3f Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Sun, 7 Mar 2010 01:09:21 + Subject: [PATCH] nouveau/nv04: GL_EXT_secondary_color

Re: [Mesa3d-dev] Probably, i monkeyed in wrong direction .....

2010-03-05 Thread randrianasulu
В сообщении от Friday 05 March 2010 16:55:20 Jesse Barnes написал(а): > make realclean and configure and make again. Removing all new functions and reverting to mainstream mesa works OK, even without realclean ... So, it is purely my fault, as coder. But what exactly I forgot? Init current_prim

[Mesa3d-dev] Probably, i monkeyed in wrong direction .....

2010-03-05 Thread randrianasulu
RETTY_FUNCTION__ = "processWindowWorkList" #13 0xb771b519 in glutMainLoop () at glut_event.c:1358 No locals. #14 0x0804ae39 in main (argc=1, argv=0xbf9e0f54) at engine.c:1340 No locals. From 50c585a409efdce367aabffa6192bd98d4e9da28 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Thu, 4 M

[Mesa3d-dev] [PATCH][RFC] V2 porting code from old nouveau driver?

2010-03-04 Thread randrianasulu
still not working/not plugged in.. What i need to do about lack of ->new_state and ->current_primitive in ctx ? From 50c585a409efdce367aabffa6192bd98d4e9da28 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Thu, 4 Mar 2010 17:54:20 + Subject: [PATCH 1/5] Add WAR_ONCE

[Mesa3d-dev] [PATCH][RFC] porting code from old nouveau driver?

2010-03-04 Thread randrianasulu
(with gcc 4.4.3). Guess i need to include it somewhat differently? ../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:766: error: 'TAG' defined as function, returning function From c5f7559adfbc4b6e34cba7ee6d1199a8709e5981 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Thu, 4 Mar

[Mesa3d-dev] writing line emulation for hw driver?

2010-03-03 Thread randrianasulu
Hello all! I recently plugged in old TNT2 (nv05) card and started to playing with it. This hardware can do quads and triangles, but not lines or points So, i need to emulate them. utah-glx has some code exactly for this generation of hardware: http://utah-glx.cvs.sourceforge.net/viewvc/u

[Mesa3d-dev] [PATCH] Hack for nv04_surfaces.c

2010-03-02 Thread randrianasulu
Allow some texwrap testing. But just hack around for now . From 4f381482488cb522c8ed039168b8a4e2a0fd01f8 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Tue, 2 Mar 2010 16:26:42 + Subject: [PATCH] nouveau/nv04: temporary hack for texwrap demo, texture borders not implemented (no

[Mesa3d-dev] [PATCH] Nouveau add GL_EXT_secondary_color for nv05

2010-03-02 Thread randrianasulu
Tested with progs/demos/spectex and progs/tests/seccol From 25644f5a5cac44b77496a8b65eb13cef6f97d20e Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Tue, 2 Mar 2010 16:16:38 + Subject: [PATCH] nouveau/nv04: GL_EXT_secondary_color --- src/mesa/drivers/dri/nouveau/nouveau_context.c

[Mesa3d-dev] [PATCH] Fix for multitextured secondary color?

2010-03-02 Thread randrianasulu
Not tested, but pervious version was from my erroneous testing, clearly wrong value and offset. From 21c0dc897d90d9e40d970adb20f7aaece5ee5a4b Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Tue, 2 Mar 2010 16:39:31 + Subject: [PATCH] Oh, hopefully fix multitextured + seconday color

Re: [Mesa3d-dev] [PATCH] Nouveau_vieux "fixes"

2010-03-01 Thread randrianasulu
r.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; > &g

[Mesa3d-dev] [PATCH] nouveau: another trivial extension enable

2010-03-01 Thread randrianasulu
From fa7842908e2109b5c976e0d7082f67dfe2437dc2 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu Date: Tue, 2 Mar 2010 03:29:51 + Subject: [PATCH] nouveau: Trivially add GL_ARB_texture_mirrored_repeat. Texwrap demo not working fully yet --- src/mesa/drivers/dri/nouveau/nouveau_context.c

Re: [Mesa3d-dev] [PATCH] Nouveau_vieux "fixes"

2010-03-01 Thread randrianasulu
ed op) > > switch (op) { > > case GL_KEEP: > > return 0x1; > > + case GL_ZERO: > > + return 0x2; > > + case GL_REPLACE: > > + return 0x3; > > case GL_INCR: > &g

[Mesa3d-dev] [PATCH] Nouveau_vieux "fixes"

2010-02-27 Thread randrianasulu
_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 Randrianas