summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-18 17:19:45 +0200
committerMarek Olšák <[email protected]>2010-04-18 17:49:12 +0200
commit24ceef7a6969ccb2243e7bb32f86d6429d9689b9 (patch)
tree0112f93357ae2c6ad6fc51e70e93fead87ee08a6 /src/gallium/drivers/r300/r300_render.c
parentcea7b9f937dd8d987dc48e636adf83a829897a28 (diff)
r300g: more solid is_buffer_referenced implementation
This fixes crash from 7a1b5c937fa32968a04a11649e456a1ef8c5b442, and also removes the unused "map" pointer.
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r--src/gallium/drivers/r300/r300_render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 26ff71c8461..a3fd8cc67d8 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -152,9 +152,9 @@ static boolean immd_is_good_idea(struct r300_context *r300,
if (!checked[vbi]) {
vbuf = &r300->vertex_buffer[vbi];
- if (r300->rws->is_buffer_referenced(r300->rws,
- r300_buffer(vbuf->buffer)->buf,
- R300_REF_CS | R300_REF_HW)) {
+ if (r300_buffer_is_referenced(&r300->context,
+ vbuf->buffer,
+ R300_REF_CS | R300_REF_HW)) {
/* It's a very bad idea to map it... */
return FALSE;
}