summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_state_validate.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-06-05 20:32:32 +1000
committerBen Skeggs <bskeggs@redhat.com>2009-06-05 22:53:23 +1000
commit1a92c71a66dd9d785906cdb78c107e63dcf48672 (patch)
tree416392118feb9fc7a1a182f7ef39a31ba74c84dd /src/gallium/drivers/nv50/nv50_state_validate.c
parentb04470b0bce6a24a74a0ec8cf16d9d3f03aff5f2 (diff)
nv50: create textures with nouveau_bo, for flexibility with tiling later
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_state_validate.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_state_validate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state_validate.c b/src/gallium/drivers/nv50/nv50_state_validate.c
index 9e70d4b78d..1788f76456 100644
--- a/src/gallium/drivers/nv50/nv50_state_validate.c
+++ b/src/gallium/drivers/nv50/nv50_state_validate.c
@@ -32,7 +32,8 @@ nv50_state_validate_fb(struct nv50_context *nv50)
unsigned i, w, h, gw = 0;
for (i = 0; i < fb->nr_cbufs; i++) {
- struct nouveau_bo *bo = nouveau_bo(nv50_surface_buffer(fb->cbufs[i]));
+ struct pipe_texture *pt = fb->cbufs[i]->texture;
+ struct nouveau_bo *bo = nv50_miptree(pt)->bo;
if (!gw) {
w = fb->cbufs[i]->width;
@@ -73,7 +74,8 @@ nv50_state_validate_fb(struct nv50_context *nv50)
}
if (fb->zsbuf) {
- struct nouveau_bo *bo = nouveau_bo(nv50_surface_buffer(fb->zsbuf));
+ struct pipe_texture *pt = fb->zsbuf->texture;
+ struct nouveau_bo *bo = nv50_miptree(pt)->bo;
if (!gw) {
w = fb->zsbuf->width;