OSDN Git Service

nv50,nvc0: make sure to pushbuf_refn before putting bo into pushbuf_data
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 21 Jun 2015 23:03:35 +0000 (19:03 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 1 Jul 2015 14:22:39 +0000 (15:22 +0100)
commit36250def23c31b02b7bf55785fab2c2644d0a52f
tree805896c26bf99ba184b56aad0abb151b4c57fb43
parent8bcc8f4b480a7eb261e950af5c76f74c34c59abf
nv50,nvc0: make sure to pushbuf_refn before putting bo into pushbuf_data

Without first running the bo through pushbuf_refn, the nouveau drm
library will have uninitialized structures regarding this bo, and will
insert incorrect data.

This fixes supertuxkart 0.9 crash on start (where it ends up doing a lot
of indirect draws).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 78d58e642549fbf340fdb4fca06720d2891216a8)
src/gallium/drivers/nouveau/nv50/nv50_query.c
src/gallium/drivers/nouveau/nv50/nv50_vbo.c
src/gallium/drivers/nouveau/nvc0/nvc0_query.c
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c