nouveau : nv10 mixing cached stuff with not cached stuff is bad.

This commit is contained in:
Matthieu Castet 2007-01-28 23:26:21 +01:00 committed by Matthieu Castet
parent b0e86b2dbd
commit c7c0a6ddcd

View file

@ -688,10 +688,10 @@ static GLboolean nv10BindBuffers(nouveauContextPtr nmesa, int num_color,
if (color[0]->mesa._ActualFormat != GL_RGBA8) {
format = 0x103; /* R5G6B5 color buffer */
}
OUT_RING(format);
OUT_RING(pitch);
OUT_RING(color[0]->offset);
OUT_RING(depth ? depth->offset : color[0]->offset);
OUT_RING_CACHE(format);
OUT_RING_CACHE(pitch);
OUT_RING_CACHE(color[0]->offset);
OUT_RING_CACHE(depth ? depth->offset : color[0]->offset);
return GL_TRUE;
}