[Mesa-dev] [PATCH] i965/gen6/gs: Replace V-immediate with VF-immediate.
Francisco Jerez
currojerez at riseup.net
Wed Mar 2 03:15:52 UTC 2016
Matt Turner <mattst88 at gmail.com> writes:
> ---
> src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp b/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp
> index 9935557..08f9bb3 100644
> --- a/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp
> +++ b/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp
> @@ -611,11 +611,11 @@ gen6_gs_visitor::xfb_write()
> emit(CMP(dst_null_d(), sol_temp, this->max_svbi, BRW_CONDITIONAL_LE));
> emit(IF(BRW_PREDICATE_NORMAL));
> {
> - src_reg destination_indices_uw =
> - retype(destination_indices, BRW_REGISTER_TYPE_UW);
> -
> - vec4_instruction *inst = emit(MOV(dst_reg(destination_indices_uw),
> - brw_imm_v(0x00020100))); /* (0, 1, 2) */
> + vec4_instruction *inst = emit(MOV(dst_reg(destination_indices),
> + brw_imm_vf4(brw_float_to_vf(0.0),
> + brw_float_to_vf(1.0),
> + brw_float_to_vf(2.0),
> + brw_float_to_vf(0.0))));
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> inst->force_writemask_all = true;
>
> emit(ADD(dst_reg(this->destination_indices),
> --
> 2.4.10
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160301/bc303c3e/attachment.sig>
More information about the mesa-dev
mailing list