[Nouveau] [PATCH] drm/nve4: fix size of POLY2ESETUP buffer

2013-12-25 Thread Christoph Bumiller
This fixes write faults from GPCCLIENT 5 in geometry shader tests. For now this is just a guess from a single mmio trace, it looks like 8 large pages are being used, i.e. one per TPC. Can we just ask NV for the correct sizes ? --- drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c | 2 +- 1 fil

[Nouveau] [PATCH] drm/nve4: fix size of POLY2ESETUP buffer (s/gpc_nr/tpc_total)

2013-12-25 Thread Christoph Bumiller
This fixes write faults from GPCCLIENT 5 in geometry shader tests. For now this is just a guess from a single mmio trace, it looks like 8 large pages are being used, i.e. one per TPC. Can we just ask NV for the correct sizes ? --- drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c | 2 +- 1 fil

[Nouveau] [PATCH 1/4] drm/nvc0: implement VRAM compression

2013-03-27 Thread Christoph Bumiller
--- drivers/gpu/drm/nouveau/core/include/subdev/ltcg.h |7 + drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c | 55 + drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c| 129 +++- drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c | 58 +- 4 files change

[Nouveau] [PATCH 2/4] drm/nouveau: support NOUVEAU_GETPARAM_GRAPH_UNITS on >= nvc0

2013-03-27 Thread Christoph Bumiller
--- drivers/gpu/drm/nouveau/core/engine/graph/nv40.c | 10 ++ drivers/gpu/drm/nouveau/core/engine/graph/nv50.c | 10 ++ drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c | 15 +++ drivers/gpu/drm/nouveau/core/engine/graph/nvc0.h |2 ++ drivers/gpu/drm/n

[Nouveau] [PATCH 4/4] drm/nve0: add handling for a bunch of PGRAPH traps

2013-03-27 Thread Christoph Bumiller
--- drivers/gpu/drm/nouveau/core/engine/graph/nve0.c | 230 ++ 1 files changed, 230 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/nve0.c b/drivers/gpu/drm/nouveau/core/engine/graph/nve0.c index 4b45afb..e411b18 100644 --- a/drivers/gpu/

[Nouveau] [PATCH 3/4] drm/nvc0: add software methods to control some MP regs

2013-03-27 Thread Christoph Bumiller
--- .../gpu/drm/nouveau/core/engine/software/nvc0.c| 29 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/nouveau/core/engine/software/nvc0.c b/drivers/gpu/drm/nouveau/core/engine/software/nvc0.c index a523eaa..d698e71 100644 --- a/drivers

[Nouveau] [PATCH] drm/nouveau: bump the driver version to 1.1.1

2013-03-27 Thread Christoph Bumiller
--- drivers/gpu/drm/nouveau/nouveau_drm.h | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.h b/drivers/gpu/drm/nouveau/nouveau_drm.h index b25df37..04cc466 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.h +++ b/drivers/gpu/

[Nouveau] [PATCH] drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate

2012-07-26 Thread Christoph Bumiller
--- drivers/gpu/drm/nouveau/nvd0_display.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvd0_display.c b/drivers/gpu/drm/nouveau/nvd0_display.c index c486d3c..c50b075 100644 --- a/drivers/gpu/drm/nouveau/nvd0_display.c +++ b/drivers/gpu/drm/nou

Re: [Nouveau] [mesa PATCH] nv50: handle VP without inputs

2012-05-06 Thread Christoph Bumiller
On 06.05.2012 20:53, Marcin Slusarz wrote: > Fixes 3 piglit tests: > general/pos-array > shaders/glsl-novertexdata > shaders/glsl-vs-point-size > and makes shaders/vp-ignore-input not trigger PGRAPH DATA_ERROR > --- > It's a bit ugly... If there's a way to fix it properly, I'm open to > suggestion

Re: [Nouveau] [PATCH] nv50: fix crash in NV50SyncToVBlank

2012-05-03 Thread Christoph Bumiller
On 05/03/2012 03:08 PM, Marcin Slusarz wrote: > On Sun, Apr 15, 2012 at 01:46:42PM +0200, Marcin Slusarz wrote: >> Regression from "WIP: port to new libdrm". >> --- >> src/nv50_accel.c |3 +++ >> 1 files changed, 3 insertions(+), 0 deletions(-) >> >> diff --git a/src/nv50_accel.c b/src/nv50_ac

Re: [Nouveau] [PATCH] nouveau/vieux: only advertise supported texture formats

2012-04-30 Thread Christoph Bumiller
On 30.04.2012 19:16, Lucas Stach wrote: > Fixes an assertion seen by users. > > Signed-off-by: Lucas Stach > Tested-by: JohnDoe_71Rus on irc > --- > src/mesa/drivers/dri/nouveau/nouveau_context.c |9 + > 1 file changed, 9 insertions(+) > > diff --git a/src/mesa/drivers/dri/nouveau/nou

Re: [Nouveau] [RFC PATCH 5/5] drm/nouveau: gpu lockup recovery

2012-04-25 Thread Christoph Bumiller
On 04/23/2012 06:32 PM, Marcin Slusarz wrote: > You can run fs-discard-exit-2 test first - for me it causes instant GPU > lockup. > That's because it's designed (but not supposed) to do that, it also locks up with the blob, it's a harmless shader infinite loop. (May be a bug in the MPs or a wro

[Nouveau] [PATCH] drm/nv40/mpeg: fix context handling for nv40-nv43

2012-03-17 Thread Christoph Bumiller
Contexts in instance memory were not added to PMPEG until nv44. --- drivers/gpu/drm/nouveau/nv31_mpeg.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nv31_mpeg.c b/drivers/gpu/drm/nouveau/nv31_mpeg.c index 6f06a07..bd90d51 100644 ---

Re: [Nouveau] [Mesa-dev] [PATCH] nv50: Fix broken assertion

2012-02-07 Thread Christoph Bumiller
On 07.02.2012 13:47, Jose Fonseca wrote: > Makes sense. Very much so ... http://cgit.freedesktop.org/mesa/mesa/commit/?id=189e6c7e81ce35b89d9b52d4bd0d6271a7e9c10f (of 26 hours ago). > > Jose > > - Original Message - >> The assertion added in f09910f3 broke nv50 completely by asserting >>

[Nouveau] [PATCH 2/2] drm/nvc0: implement VRAM compression

2012-01-21 Thread Christoph Bumiller
Safety margins checked on GTX470, not verified on other cards with a different number of memory partitions. --- drivers/gpu/drm/nouveau/nouveau_state.c | 35 +++--- drivers/gpu/drm/nouveau/nvc0_fb.c | 81 +++ drivers/gpu/drm/nouveau/nvc0_vm.c |

[Nouveau] [PATCH 1/2] drm/nv50/display: expose color vibrance control

2012-01-21 Thread Christoph Bumiller
--- drivers/gpu/drm/nouveau/nouveau_connector.c | 23 ++ drivers/gpu/drm/nouveau/nouveau_crtc.h |3 ++ drivers/gpu/drm/nouveau/nouveau_display.c | 14 + drivers/gpu/drm/nouveau/nouveau_drv.h |3 ++ drivers/gpu/drm/nouveau/nv50_crtc.c | 42

[Nouveau] [PATCH] drm/nv50/display: expose color vibrance control

2011-12-20 Thread Christoph Bumiller
--- drivers/gpu/drm/nouveau/nouveau_connector.c | 23 ++ drivers/gpu/drm/nouveau/nouveau_crtc.h |3 ++ drivers/gpu/drm/nouveau/nouveau_display.c | 12 +++ drivers/gpu/drm/nouveau/nouveau_drv.h |3 ++ drivers/gpu/drm/nouveau/nv50_crtc.c | 42 ++

[Nouveau] [PATCH] dri2: fix allocation of Z16 depth attachments

2011-12-07 Thread Christoph Bumiller
--- src/nouveau_dri2.c|4 +++- src/nv_accel_common.c |4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index d14443f..b99893f 100644 --- a/src/nouveau_dri2.c +++ b/src/nouveau_dri2.c @@ -46,6 +46,8 @@ nouveau_dri2_create_buf

[Nouveau] [PATCH] drm/nvc0/gr: fix TP init for transform feedback offset queries

2011-11-11 Thread Christoph Bumiller
Without this, they return bytes written since the last update of the offset, but we want the full offset. Trace shows setting this on GPC[0]/TP[0] is enough. --- drivers/gpu/drm/nouveau/nvc0_graph.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/nouveau/

[Nouveau] [PATCH] drm/nvc0/gr: fix TP init for transform feedback offset queries

2011-11-11 Thread Christoph Bumiller
Without this, they return bytes written since the last update of the offset, but we want the full offset. Trace shows setting this on GPC[0]/TP[0] is enough. --- drivers/gpu/drm/nouveau/nvc0_graph.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/nouveau/

Re: [Nouveau] nv1x 3d fix/workaround for Q3 demo

2011-07-11 Thread Christoph Bumiller
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

Re: [Nouveau] [PATCH] nvfx: fill some PIPE_CAPs

2011-05-13 Thread Christoph Bumiller
On 13.05.2011 13:20, Francesco Marella wrote: > -Francesco Pushed, thank you. ___ Nouveau mailing list Nouveau@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/nouveau

Re: [Nouveau] [PATCH] mesa: nouveau/nvfx primitive restart

2010-11-13 Thread Christoph Bumiller
On 13.11.2010 11:20, Patrice Mandin wrote: > Hello, > > As nv30/nv40 supports primitive restart in hardware, here is a patch. > Thank you, note however that this does not make it work yet in the case where the driver decides to push vertex data on the FIFO directly, which is implemented via the tra

Re: [Nouveau] [PATCH] nv50/exa: use dual-source blending for component-alpha composite

2010-05-31 Thread Christoph Bumiller
On 05/31/2010 11:58 AM, Ben Skeggs wrote: > On Mon, 2010-05-31 at 10:30 +0200, Christoph Bumiller wrote: >> On 31.05.2010 03:49, Ben Skeggs wrote: >>> On Mon, 2010-05-31 at 11:44 +1000, Ben Skeggs wrote: >>> >>>> From: Ben Skeggs >>>> >

Re: [Nouveau] [PATCH] nv50/exa: use dual-source blending for component-alpha composite

2010-05-31 Thread Christoph Bumiller
On 31.05.2010 03:49, Ben Skeggs wrote: > On Mon, 2010-05-31 at 11:44 +1000, Ben Skeggs wrote: > >> From: Ben Skeggs >> > This is the result of some playing around, thought it'd be useful so > sending to the list for some sanity checking first, particularly in the > shader setup. > > I woul

Re: [Nouveau] RFC: gallium/nv50: get rid of the screen_init stateobj

2010-03-14 Thread Christoph Bumiller
On 14.03.2010 13:03, Maarten Maathuis wrote: > On Sun, Mar 14, 2010 at 11:32 AM, Christoph Bumiller > wrote: > >> Hi. >> There's not much to say here, just replacing the screen_init >> stateobj with direct pushbuffer emission. >> >> We don't

[Nouveau] RFC: gallium/nv50: get rid of the screen_init stateobj

2010-03-14 Thread Christoph Bumiller
sn't among them (not an address)) become effective. Thoughts, ack / nack ? Thanks, Christoph >From f37dea43c705683a89e31da78200872cc00ac967 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 14 Mar 2010 11:19:27 +0100 Subject: [PATCH] nv50: get rid of the screen_init state

Re: [Nouveau] Gallium driver and compatibility issues

2010-03-12 Thread Christoph Bumiller
On 11.03.2010 18:42, Uwe Bugla wrote: > Hi, > > I use two nv34 cards and I would like to test / try out / use the > Gallium driver without drawbacks. > > Note that you said "use", and not "own", which is a little biased towards "they're plugged into the same MB". > Unfortunately this has not be

[Nouveau] nv50/gallium: a few comments about latest patches

2010-03-10 Thread Christoph Bumiller
Just wanted to communicate some thoughts I had while reading the diffs, even thought I didn't have the time to look at everything in detail yet. - nv50: use relocs rather than re-uploading TIC all the time It's nice that we can write relocs to arbitrary buffers, and it's much less work than emitti

[Nouveau] gallium: adjust to PIPE_FORMAT name changes

2010-03-02 Thread Christoph Bumiller
) Thanks, Christoph >From c0a9e6d906c8c6fc2cfa281f8553c1109f46f81a Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 2 Mar 2010 18:43:11 +0100 Subject: [PATCH] nouveau: adjust texture and nv50 RT formats to names byteswap Will keep a patch for middle endian format naming ready. ---

Re: [Nouveau] [PATCH] nv50/accel: Fix mangled A8+A8 shader.

2010-02-05 Thread Christoph Bumiller
On 02/05/2010 06:01 PM, Marcin Koƛcielnicki wrote: > Turns out we used a misaligned long instruction near the end, and the > shader was getting killed after writing R, A components. This has gone > unnoticed since the remaining G, B outputs aren't actually used. Thank you, pushed. > --- > src/nv

Re: [Nouveau] [libdrm PATCH 1/4] nouveau: add nouveau_resource_destroy

2010-01-22 Thread Christoph Bumiller
On 21.01.2010 22:33, Marcin Slusarz wrote: > On Fri, Jan 15, 2010 at 12:02:25AM +0100, Maarten Maathuis wrote: > >> Is everyone ok with this api addition (naming ok?)? >> > I guess they are... > > ... Or is there any issue with this patch I'm not aware of? > > Marcin > > In principle I g

Re: [Nouveau] [mesa PATCH] nv50: fix nv50_program->immd memory leak

2010-01-18 Thread Christoph Bumiller
On 17.01.2010 23:50, Marcin Slusarz wrote: > --- > src/gallium/drivers/nv50/nv50_program.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/src/gallium/drivers/nv50/nv50_program.c > b/src/gallium/drivers/nv50/nv50_program.c > index 4111d21..cfe8b48 100644 > --- a/src/

[Nouveau] nv50: conditional rendering

2010-01-05 Thread Christoph Bumiller
do waiting anymore by mapping a bo (since I didn't reloc one), and thus I have to busy wait on the notifier area, which isn't necessarily optimal ... Any suggestions ? Christoph >From 5f08c8ec98e389f69d80b4529a89ebaee3a72a93 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue,

Re: [Nouveau] ddx/nv50: use drawable.bitsPerPixel to decide format

2009-12-30 Thread Christoph Bumiller
On 12/30/2009 06:37 PM, Christoph Bumiller wrote: > On 12/29/2009 06:06 PM, Marcin Slusarz wrote: >> On Mon, Dec 28, 2009 at 06:55:23PM +0100, Maarten Maathuis wrote: >>> On Mon, Dec 28, 2009 at 6:37 PM, Marcin Slusarz >>> wrote: >>>&g

[Nouveau] ddx/nv50: use drawable.bitsPerPixel to decide format

2009-12-30 Thread Christoph Bumiller
=%d\n", >>> ppix->drawable.depth); >>> -return FALSE; >> >> Why did you remove this? > > because it's unreachable, NOUVEAU_FALLBACK returns FALSE > > _

Re: [Nouveau] Synchronization mostly missing?

2009-12-28 Thread Christoph Bumiller
On 12/28/2009 08:15 AM, Younes Manton wrote: > On Mon, Dec 28, 2009 at 1:55 AM, Luca Barbieri wrote: >>> Can you reproduce this with your vertex buffers in VRAM instead of GART? >>> (to rule out that it's a fencing issue). >> >> Putting the vertex buffers in VRAM makes things almost perfect, but >

Re: [Nouveau] [PATCH 1/2] drm/nv50: align size of buffer object to the right boundaries.

2009-12-27 Thread Christoph Bumiller
On 12/27/2009 12:41 PM, Maarten Maathuis wrote: > - Depth and stencil buffers are supposed to be large enough in general. > > Signed-off-by: Maarten Maathuis > --- > drivers/gpu/drm/nouveau/nouveau_bo.c |9 - > 1 files changed, 4 insertions(+), 5 deletions(-) > > diff --git a/driver

Re: [Nouveau] [PATCH] nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped

2009-12-21 Thread Christoph Bumiller
On 12/20/2009 04:46 PM, Maarten Maathuis wrote: > - This avoids problematic "reloc'ed while mapped" messages and > some associated corruption as well. > - Also add one nouveau_bo_unmap() in the vbo code that wasn't present. I didn't think nouveau_bo_unmap was necessary if the map failed. As far as

Re: [Nouveau] [PATCH 1/2] nv50: don't emit reloc markers after a referenced vtxbuf is mapped

2009-12-20 Thread Christoph Bumiller
On 20.12.2009 14:01, Maarten Maathuis wrote:+static int > +nv50_pre_pipebuffer_map(struct pipe_screen *pscreen, struct pipe_buffer *pb, > + unsigned usage) > +{ > + struct nv50_screen *screen = nv50_screen(pscreen); > + struct nv50_context *ctx = screen->cur_ctx; > + > + if (!(pb->u

Re: [Nouveau] [PATCH] nouveau: don't emit reloc markers for bo's that are mapped

2009-12-18 Thread Christoph Bumiller
Maarten Maathuis schrieb: > Signed-off-by: Maarten Maathuis > --- > src/gallium/drivers/nouveau/nouveau_stateobj.h |9 + > 1 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/src/gallium/drivers/nouveau/nouveau_stateobj.h > b/src/gallium/drivers/nouveau/nouveau_stateob

Re: [Nouveau] Question about nv40_draw_array

2009-12-17 Thread Christoph Bumiller
On 17.12.2009 19:11, Krzysztof Smiechowicz wrote: > Christoph Bumiller pisze: > >> Hi. >> > Hi, thanks for the quick feedback. :) > > >> Most probably the state tracker calls pipe_buffer_map on the vertex >> buffer which (if it was not created as

Re: [Nouveau] Question about nv40_draw_array

2009-12-17 Thread Christoph Bumiller
Krzysztof Smiechowicz schrieb: > Hi, > > My name is Krzysztof and currently I'm working on porting nouveau > (gallium3d driver + libdrm + drm) to AROS Research OS > (http://www.aros.org). I completed a quite successful port of "old" drm > (one from libdrm git - now removed) and currently I'm wo

Re: [Nouveau] [PATCH] nouveau: avoid running out of relocs (attempt 5)

2009-12-14 Thread Christoph Bumiller
On 13.12.2009 16:07, Maarten Maathuis wrote: > - Added flush notify functions for NV30 and NV40. > - NV30 and NV40 need testing (check for regressions). > --- > > @@ -112,19 +112,29 @@ so_emit(struct nouveau_channel *chan, struct > nouveau_stateobj *so) > { > struct nouveau_pushbuf *pb = ch

[Nouveau] nv50/gallium: vertex shader textures

2009-12-10 Thread Christoph Bumiller
Maybe someone wants to have a look at this ... should work. Thanks, Christoph >From 7ecd5a88d637a2199103dc321dc649b68e84cbbd Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Thu, 10 Dec 2009 20:50:02 +0100 Subject: [PATCH 1/8] nv50: support vertex program textures --- src/gall

[Nouveau] [PATCH] nv50/gallium: submit user vbufs through the fifo

2009-10-14 Thread Christoph Bumiller
g to float). Maybe someone wants to comment on the implementation here, though. >From 53c844d32f94f62e8c947a744f383eb7b4fb21e7 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Wed, 14 Oct 2009 21:23:29 +0200 Subject: [PATCH 3/7] nv50: submit user vbo data through the fifo Requesting

[Nouveau] [PATCH] nv50/gallium: use SIFC to upload to TIC/TSC

2009-10-14 Thread Christoph Bumiller
same in the DDX failed. This can provide a good speed boost in some cases, too. I'll wait a while for potential comments before pushing this. >From 3a4317961fda080aa23a35e0f22146dd14f738f0 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 10 Oct 2009 13:13:16 +0200 Subject: [P

[Nouveau] nv50/gallium: a few patches, updated

2009-07-28 Thread Christoph Bumiller
Half of them I sent previously, now with updated reg names and corrections, the other half is new. Read them for a description, I'm too tired now for detailed explanations ... Christoph >From 4a2fe7e7e3dd3f7dcb1451f6ee74038897c6df7a Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date:

[Nouveau] nv50/gallium: fix viewport & scissoring

2009-07-12 Thread Christoph Bumiller
These patches should fix viewport and scissoring being y-inverted. The effect should be visible in the gearbox demo. Christoph >From 2bd1767340698ff6efb38c1869febdde52c4369d Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 12 Jul 2009 15:39:41 +0200 Subject: [PATCH 1/3] nv50:

[Nouveau] nv50/gallium: fix the zeta formats

2009-07-04 Thread Christoph Bumiller
e000), but that's not yet defined in the pipe formats header, and I actually don't know if it's even possbible to define that cleanly the way pipe_format is laid out. Christoph >From 855ce10f59b1d4623f509f2aa502dd4300cd54e3 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sa

[Nouveau] [PATCH] nv50/gallium patch series 2, fixes

2009-06-24 Thread Christoph Bumiller
Ah, obviously I DID introduce a few regressions in those patches, this should fix what I discovered so far; will be merged into the respective patches later. Christoph >From c7feb3ab5aaf6a323e842987d6ea5f7637fac79d Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Wed, 24 Jun 2009 22:18

Re: [Nouveau] nv50: shader generation patches

2009-05-16 Thread Christoph Bumiller
Hello Kamil, Nope, nothing's got commited so far, and I'm thinking about creating an account so I can do so, but I'd really feel better if someone reviewed my stuff first. Thanks for your interest, I'd be happy if you tested my patches and told me if you get any improvements or regressions with th

[Nouveau] nv50/gallium: shader generation patches, update

2009-05-16 Thread Christoph Bumiller
Hi ! Here are some more changes to the shader code to be applied in addition to the previous ones. Well, I've though about getting an account so I could commit some (or all) of this stuff, probably in splitting some patches up a bit more. But I'd feel much better doing so (if I was even allowed to

[Nouveau] [PATCH] nv50/gallium: small fix for nv50_transfer_rect_m2mf (sy <-> dy)

2009-05-11 Thread Christoph Bumiller
Hi ! I think src and dst starting positions got mixed up in nv50_transfer_rect_m2mf, there's a diff at the bottom of this message. This came up when trying to make the gearbox demo run correctly, but this change alone doesn't fix it. The mesa state tracker in st_cb_clear.c assumes Y_0_TOP when clea

[Nouveau] [PATCH] gallium/nv50: fix multi-texturing

2009-05-08 Thread Christoph Bumiller
This one maps textures to sampler units (or textures to texture units or whatever it's called), which wasn't done before. It should make the mesa demo "multiarb" work, at least with the shader patches I sent earlier. Of course, with this functionality one probably wouldn't have to setup the texture

[Nouveau] nv50: shader generation patches

2009-05-06 Thread Christoph Bumiller
Hi ! I've been trying to improve NV50 shader generation a bit the last couple of weeks, so here is what I've produced. I don't know if it's usable for you or just a pile of horrible hacks, but at least it makes some mesa demos render more correcly, p.e. the teapot (aside from mip-mapping issues

[Nouveau] (patch) Gallium NV50: honor bypass_vs_clip_and_viewport

2009-03-31 Thread Christoph Bumiller
When trying out the Gallium3D NV50 driver (curiosity) with a small OpenGL program that renders 2 rotating triangles partially occluding each other I noticed that depth buffer clearing by rendering a quad (st_cb_clear.c/clear_with_quad) didn't work properly. I found this was because the rasterizer