nvfx: don't emit dummy commands on nv30
Should fix errors on the original nv30, reported by pmdata.
This commit is contained in:
@@ -368,12 +368,16 @@ nvfx_push_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
|
|||||||
if(max_verts >= 16)
|
if(max_verts >= 16)
|
||||||
{
|
{
|
||||||
/* XXX: any command a lot of times seems to (mostly) fix corruption that would otherwise happen */
|
/* XXX: any command a lot of times seems to (mostly) fix corruption that would otherwise happen */
|
||||||
|
/* this seems to cause issues on nv3x, and also be unneeded there */
|
||||||
|
if(nvfx->is_nv4x)
|
||||||
|
{
|
||||||
int i;
|
int i;
|
||||||
for(i = 0; i < 32; ++i)
|
for(i = 0; i < 32; ++i)
|
||||||
{
|
{
|
||||||
OUT_RING(chan, RING_3D(0x1dac, 1));
|
OUT_RING(chan, RING_3D(0x1dac, 1));
|
||||||
OUT_RING(chan, 0);
|
OUT_RING(chan, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
OUT_RING(chan, RING_3D(NV34TCL_VERTEX_BEGIN_END, 1));
|
OUT_RING(chan, RING_3D(NV34TCL_VERTEX_BEGIN_END, 1));
|
||||||
OUT_RING(chan, hw_mode);
|
OUT_RING(chan, hw_mode);
|
||||||
|
Reference in New Issue
Block a user