summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nv50
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2013-04-04 15:28:13 +0200
committerIlia Mirkin <[email protected]>2014-07-15 17:57:45 -0400
commita284a0afa2bf647247ac15f45abee170259c9a46 (patch)
tree35153cadd633a8dd7040e8fbc5aed61f4f39a87a /src/gallium/drivers/nouveau/nv50
parentbbc4a7bd31e604ee94b9285ec3e6c8bee0cb9502 (diff)
nvc0: add support for indirect drawing
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50')
-rw-r--r--src/gallium/drivers/nouveau/nv50/nv50_3d.xml.h2
-rw-r--r--src/gallium/drivers/nouveau/nv50/nv50_screen.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_3d.xml.h b/src/gallium/drivers/nouveau/nv50/nv50_3d.xml.h
index cc3a382b061..7523fdc4580 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_3d.xml.h
+++ b/src/gallium/drivers/nouveau/nv50/nv50_3d.xml.h
@@ -479,7 +479,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define NV50_3D_WATCHDOG_TIMER 0x00000de4
-#define NV50_3D_UNK0DE8 0x00000de8
+#define NV50_3D_PRIM_RESTART_WITH_DRAW_ARRAYS 0x00000de8
#define NV50_3D_UNK0DEC 0x00000dec
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
index 17d8fa3529f..fd63819c397 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
@@ -437,6 +437,8 @@ nv50_screen_init_hwctx(struct nv50_screen *screen)
PUSH_DATA (push, NV50_3D_MULTISAMPLE_MODE_MS1);
BEGIN_NV04(push, NV50_3D(MULTISAMPLE_CTRL), 1);
PUSH_DATA (push, 0);
+ BEGIN_NV04(push, NV50_3D(PRIM_RESTART_WITH_DRAW_ARRAYS), 1);
+ PUSH_DATA (push, 1);
BEGIN_NV04(push, NV50_3D(LINE_LAST_PIXEL), 1);
PUSH_DATA (push, 0);
BEGIN_NV04(push, NV50_3D(BLEND_SEPARATE_ALPHA), 1);