summaryrefslogtreecommitdiff
path: root/src/i965_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-12-08 23:44:45 +0000
committerOwain G. Ainsworth <oga@openbsd.org>2010-03-01 19:14:20 +0000
commit770090648d908d34823f23d3aff8142348d5a1ea (patch)
treec1ab196903b0f9b6ced7bfd2b762aaa9810d6063 /src/i965_render.c
parentc2b825a96879c2077ac9e962e168d3861479b92b (diff)
i965: Set src_filter before testing.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit 0cf04ea4d736f7d7848f33b772d88a0f1b6678b1) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'src/i965_render.c')
-rw-r--r--src/i965_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index 10ed5617..e79ac042 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -1469,6 +1469,8 @@ i965_prepare_composite(int op, PicturePtr source_picture,
uint32_t *binding_table;
drm_intel_bo *binding_table_bo, *surface_state_bo;
+ composite_op->src_filter =
+ sampler_state_filter_from_picture(source_picture->filter);
if (composite_op->src_filter < 0) {
intel_debug_fallback(scrn, "Bad src filter 0x%x\n",
source_picture->filter);
@@ -1572,8 +1574,6 @@ i965_prepare_composite(int op, PicturePtr source_picture,
intel->render_dest = dest;
drm_intel_bo_unreference(composite_op->binding_table_bo);
composite_op->binding_table_bo = binding_table_bo;
- composite_op->src_filter =
- sampler_state_filter_from_picture(source_picture->filter);
intel->scale_units[0][0] = source->drawable.width;
intel->scale_units[0][1] = source->drawable.height;