summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_pipe_flush.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-04 23:30:52 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-04 23:30:52 +0000
commit7a49bd6d15d7778db637340d695095dafb43a7fe (patch)
treeb8976175560992c2d7c8d05f408f5851d16bde30 /src/gallium/drivers/i965/brw_pipe_flush.c
parente3e084c66089704a36f28dfb2bc4b17e5c5ce046 (diff)
i965g: remove redundant screen pointer in brw context struct
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 );
}