OSDN Git Service

nvc0: reset the instanced elements state when doing blit using 3d engine
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 9 May 2015 17:25:51 +0000 (13:25 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 20 May 2015 21:04:59 +0000 (22:04 +0100)
commitd47d799b5f0e860c5ca2cc634015167dfd98e2e6
tree5d0f54c95815e33e588fb72af2bd7a2868b3b1d0
parentf3804a005195ab3d77a727a71727cc1a9d09427c
nvc0: reset the instanced elements state when doing blit using 3d engine

Since we update num_vtxelts here, we could otherwise end up with stale
instancing information in the upper bits which wouldn't otherwise get
reset. (Also we run the risk of the previous draw having set the first
element as instanced.)

This appears as one of the causes for the test pointed out in fdo#90363
to fail on nvc0.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90363
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit 7892210400e8f3bd14697c0a3dd56e98454a45df)
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c