OSDN Git Service

nv50: fix drawing from tfb, direct-to-pushbuf submits
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 1 Jan 2015 11:09:59 +0000 (06:09 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 6 Sep 2015 03:03:52 +0000 (23:03 -0400)
commit75e34d1df8b0ab56e5e658b8ef90ff6057ec954e
tree606456f6a1e18248fc2f9d43afa92a2705bad315
parent5165e464f225cd1b0f61e0da0758052b9b9ff518
nv50: fix drawing from tfb, direct-to-pushbuf submits

The stride was being set to 0, which is illegal (and also non-sensical).
Also we must wait for the buffer to become available for reading as
otherwise a wrong value may be prefetched. Since we must wait for the
buffer anyways, and it's mapped and in GART, we may as well avoid the
annoyance of the indirect pushbuf submit.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nv50/nv50_context.h
src/gallium/drivers/nouveau/nv50/nv50_query.c
src/gallium/drivers/nouveau/nv50/nv50_shader_state.c
src/gallium/drivers/nouveau/nv50/nv50_vbo.c