summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-06-11 13:00:20 +1000
committerBen Skeggs <[email protected]>2008-06-29 15:46:16 +1000
commit7e9f6e290da23d7963857241b541e00c1fcf20dc (patch)
treec1d67836be863d38d2e84a176bd4c44e784949b9 /src/gallium/drivers
parent7b7df34781844c39998d60bbb60880d960da3fb1 (diff)
nv50: move some magics
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nv50/nv50_program.c16
-rw-r--r--src/gallium/drivers/nv50/nv50_screen.c9
2 files changed, 14 insertions, 11 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index d69eb4b86be..934b67fb711 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -1492,14 +1492,26 @@ nv50_fragprog_validate(struct nv50_context *nv50)
nv50_program_validate_data(nv50, p);
nv50_program_validate_code(nv50, p);
- so = so_new(7, 2);
+ so = so_new(64, 2);
so_method(so, tesla, NV50TCL_FP_ADDRESS_HIGH, 2);
so_reloc (so, p->buffer, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_RD |
NOUVEAU_BO_HIGH, 0, 0);
so_reloc (so, p->buffer, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_RD |
NOUVEAU_BO_LOW, 0, 0);
- so_method(so, tesla, 0x198c, 1);
+ so_method(so, tesla, 0x1904, 4);
+ so_data (so, 0x01040404); /* p: 0x01000404 */
+ so_data (so, 0x00000004);
+ so_data (so, 0x00000000);
+ so_data (so, 0x00000000);
+ so_method(so, tesla, 0x16bc, 2);
+ so_data (so, 0x03020100);
+ so_data (so, 0x07060504);
+ so_method(so, tesla, 0x1988, 2);
+ so_data (so, 0x08040404); /* p: 0x0f000401 */
so_data (so, p->cfg.high_temp);
+ so_method(so, tesla, 0x16ac, 2);
+ so_data (so, 0x00000008); /* p: 0x00000004 */
+ so_data (so, 0x00000004);
so_method(so, tesla, 0x1414, 1);
so_data (so, 0); /* program start offset */
so_emit(nv50->screen->nvws, so);
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 6c0810a9cfe..2417bf80013 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -225,15 +225,6 @@ nv50_screen_create(struct pipe_winsys *ws, struct nouveau_winsys *nvws)
so_data (so, 0x54);
so_method(so, screen->tesla, 0x13ac, 1);
so_data (so, 1);
- so_method(so, screen->tesla, 0x16bc, 2);
- so_data (so, 0x03020100);
- so_data (so, 0x07060504);
- so_method(so, screen->tesla, 0x1988, 2);
- so_data (so, 0x08040404);
- so_data (so, 0x00000004);
- so_method(so, screen->tesla, 0x16ac, 2);
- so_data (so, 8);
- so_data (so, 4);
so_method(so, screen->tesla, 0x16b8, 1);
so_data (so, 8);