]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nv50: switch to indirect push buffer controls
authorBen Skeggs <bskeggs@redhat.com>
Thu, 11 Feb 2010 06:37:26 +0000 (16:37 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 25 Feb 2010 05:08:29 +0000 (15:08 +1000)
commit96419e97fd73049190278ce1f05ed0cfd1a07286
tree2dafd2b541dff055e88406cfb48679530b12192e
parentae0bd65662da10c493109dc1dbcd71d3b38a7f20
drm/nv50: switch to indirect push buffer controls

PFIFO on G80 and up has a new mode where the main ring buffer is simply a
ring of pointers to indirect buffers containing the actual command/data
packets.  In order to be able to implement index buffers in the 3D driver
we need to be able to submit data-only push buffers right after the cmd
packet header, which is only possible using the new command submission
method.

This commit doesn't make it possible to implement index buffers yet, some
userspace interface changes will be required, but it does allow for
testing/debugging of the hardware-side support in the meantime.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_debugfs.c
drivers/gpu/drm/nouveau/nouveau_dma.c
drivers/gpu/drm/nouveau/nouveau_dma.h
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/nouveau/nv50_fifo.c