summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-07-09 20:22:20 +0200
committerMarek Olšák <[email protected]>2010-07-09 20:28:13 +0200
commit347c00c46e9ecf858a8c21abf58a706b658b5b37 (patch)
tree33f175c56d34e122e4b9154de3baac4d96cf5206 /src/gallium/drivers/r300/r300_emit.c
parent8a8e311d8c3c60982d101826a4aa013672730e6c (diff)
r300g: allow the GTT domain for samplers
This fixes sluggishness in vdrift.
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 014b382edf3..5ce3eb63c56 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -959,7 +959,8 @@ validate:
for (i = 0; i < fb->nr_cbufs; i++) {
tex = r300_texture(fb->cbufs[i]->texture);
assert(tex && tex->buffer && "cbuf is marked, but NULL!");
- if (!r300_add_texture(r300->rws, tex, 0, tex->domain)) {
+ if (!r300_add_texture(r300->rws, tex, 0,
+ r300_surface(fb->cbufs[i])->domain)) {
r300->context.flush(&r300->context, 0, NULL);
goto validate;
}
@@ -968,8 +969,8 @@ validate:
if (fb->zsbuf) {
tex = r300_texture(fb->zsbuf->texture);
assert(tex && tex->buffer && "zsbuf is marked, but NULL!");
- if (!r300_add_texture(r300->rws, tex,
- 0, tex->domain)) {
+ if (!r300_add_texture(r300->rws, tex, 0,
+ r300_surface(fb->zsbuf)->domain)) {
r300->context.flush(&r300->context, 0, NULL);
goto validate;
}