i915: Load texture into directly into OC when possible.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
737de9a779
commit
213816c30b
|
|
@ -627,12 +627,14 @@ static void i915_emit_composite_setup(ScrnInfoPtr scrn)
|
|||
if (dst_format == COLR_BUF_8BIT)
|
||||
src_reg = FS_R0;
|
||||
else
|
||||
src_reg = FS_R0;
|
||||
src_reg = FS_OC;
|
||||
|
||||
if (is_affine_src)
|
||||
i915_fs_texld(src_reg, FS_S0, FS_T0);
|
||||
else
|
||||
i915_fs_texldp(src_reg, FS_S0, FS_T0);
|
||||
}
|
||||
|
||||
if (src_reg != FS_OC) {
|
||||
if (dst_format == COLR_BUF_8BIT)
|
||||
i915_fs_mov(FS_OC, i915_fs_operand(src_reg, W, W, W, W));
|
||||
|
|
@ -647,6 +649,7 @@ static void i915_emit_composite_setup(ScrnInfoPtr scrn)
|
|||
i915_fs_dcl(FS_T0 + t);
|
||||
i915_fs_dcl(FS_S0 + t);
|
||||
}
|
||||
|
||||
if (! is_solid_src) {
|
||||
/* Load the source_picture texel */
|
||||
if (is_affine_src) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue