nvc0: fix mp_stack_bo relocation
authorBen Skeggs <bskeggs@redhat.com>
Thu, 13 Jan 2011 03:23:55 +0000 (13:23 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 13 Jan 2011 03:31:29 +0000 (13:31 +1000)
commit0c1db2feb9c2f5c9a2ef486053b6e9dcd9860b3e
tree5ea96bbac92b8f5deac4faad001b03eeb651779f
parent31b10516636043b8d92ce518acf6afb27d82a2d1
nvc0: fix mp_stack_bo relocation

Fixes a PT_NOT_PRESENT error cause by:
- allocating in VRAM
- emitting GART relocs to 0x17bc/0x17c0, moving the buffer
- telling the bufmgr that the buffer should be in VRAM when we use it,
  but not correcting the value sent to 0x17bc/0x17c0.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/gallium/drivers/nvc0/nvc0_screen.c