summaryrefslogtreecommitdiff
path: root/src/i915_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-16 21:00:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-16 21:00:57 +0100
commitb8bc56c12c6fdc559354fbbf96b6e043a491aa8f (patch)
treebcbc97f21a2ad2fd75427b7ac7af0c255feb2c7b /src/i915_render.c
parent182581edde356a21a0681de526f83884e1a0de5d (diff)
uxa/gen3: Simply simple fill shader generation
Suggested-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i915_render.c')
-rw-r--r--src/i915_render.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/i915_render.c b/src/i915_render.c
index acbd82ca..6d3400e7 100644
--- a/src/i915_render.c
+++ b/src/i915_render.c
@@ -779,12 +779,8 @@ i915_composite_emit_shader(intel_screen_private *intel, CARD8 op)
else
i915_fs_texldp(src_reg, FS_S0, FS_T0);
- if (src_reg != FS_OC) {
- if (dest_is_alpha)
- i915_fs_mov(FS_OC, i915_fs_operand(src_reg, W, W, W, W));
- else
- i915_fs_mov(FS_OC, i915_fs_operand_reg(src_reg));
- }
+ if (src_reg != FS_OC)
+ i915_fs_mov(FS_OC, i915_fs_operand(src_reg, W, W, W, W));
} else {
i915_fs_dcl(FS_T1);
i915_fs_dcl(FS_S1);