summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_wm_sampler_state.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-04 15:59:56 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-04 15:59:56 +0000
commit7373bc0e0294d68bc3e64f4a6de1bb4ec3132f02 (patch)
tree1512e252d70c432d58d485dac8e29ec4acee4c6d /src/gallium/drivers/i965/brw_wm_sampler_state.c
parent9706a83bc959ba8445d0258e47639b44da2238fc (diff)
i965g: hook up pipe sampler callbacks
Diffstat (limited to 'src/gallium/drivers/i965/brw_wm_sampler_state.c')
-rw-r--r--src/gallium/drivers/i965/brw_wm_sampler_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_wm_sampler_state.c b/src/gallium/drivers/i965/brw_wm_sampler_state.c
index 2909dd3876..2fddb4ad89 100644
--- a/src/gallium/drivers/i965/brw_wm_sampler_state.c
+++ b/src/gallium/drivers/i965/brw_wm_sampler_state.c
@@ -75,7 +75,7 @@ brw_wm_sampler_populate_key(struct brw_context *brw,
brw->curr.num_samplers);
for (i = 0; i < key->sampler_count; i++) {
- const struct brw_texture *tex = brw->curr.texture[i];
+ const struct brw_texture *tex = brw_texture(brw->curr.texture[i]);
const struct brw_sampler *sampler = brw->curr.sampler[i];
struct brw_sampler_state *entry = &key->sampler[i];
@@ -119,7 +119,7 @@ brw_wm_sampler_update_default_colors(struct brw_context *brw)
int i;
for (i = 0; i < nr; i++) {
- const struct brw_texture *tex = brw->curr.texture[i];
+ const struct brw_texture *tex = brw_texture(brw->curr.texture[i]);
const struct brw_sampler *sampler = brw->curr.sampler[i];
brw->sws->bo_unreference(brw->wm.sdc_bo[i]);