summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_pipe_flush.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_flush.c')
-rw-r--r--src/gallium/drivers/i965/brw_pipe_flush.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_flush.c b/src/gallium/drivers/i965/brw_pipe_flush.c
index 9dff2beeb1..fdc4814b22 100644
--- a/src/gallium/drivers/i965/brw_pipe_flush.c
+++ b/src/gallium/drivers/i965/brw_pipe_flush.c
@@ -50,8 +50,9 @@ static unsigned brw_is_buffer_referenced(struct pipe_context *pipe,
struct pipe_buffer *buffer)
{
struct brw_context *brw = brw_context(pipe);
+ struct brw_screen *bscreen = brw_screen(brw->base.screen);
- return brw_is_buffer_referenced_by_bo( brw->brw_screen,
+ return brw_is_buffer_referenced_by_bo( bscreen,
buffer,
brw->batch->buf );
}
@@ -62,8 +63,9 @@ static unsigned brw_is_texture_referenced(struct pipe_context *pipe,
unsigned level)
{
struct brw_context *brw = brw_context(pipe);
+ struct brw_screen *bscreen = brw_screen(brw->base.screen);
- return brw_is_texture_referenced_by_bo( brw->brw_screen,
+ return brw_is_texture_referenced_by_bo( bscreen,
texture, face, level,
brw->batch->buf );
}