[Mesa-dev] [PATCH v2 27/30] i965/tes/scalar: Fix load input for doubles
Francisco Jerez
currojerez at riseup.net
Sat May 14 00:45:08 UTC 2016
Samuel Iglesias Gonsálvez <siglesias at igalia.com> writes:
> From: Iago Toral Quiroga <itoral at igalia.com>
>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> ---
> src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> index 2160127..57ab020 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
> @@ -2716,8 +2716,8 @@ fs_visitor::nir_emit_tes_intrinsic(const fs_builder &bld,
> if (imm_offset < max_push_slots) {
> fs_reg src = fs_reg(ATTR, imm_offset / 2, dest.type);
> for (int i = 0; i < instr->num_components; i++) {
> - bld.MOV(offset(dest, bld, i),
> - component(src, 4 * (imm_offset % 2) + i));
> + unsigned comp = 16 / type_sz(dest.type) * (imm_offset % 2) + i;
> + bld.MOV(offset(dest, bld, i), component(src, comp));
> }
> tes_prog_data->base.urb_read_length =
> MAX2(tes_prog_data->base.urb_read_length,
> --
> 2.5.0
>
> _______________________________________________
> 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/20160513/46ed1055/attachment.sig>
More information about the mesa-dev
mailing list