[Mesa-dev] [PATCH v2 16/19] i965/fs: Use the builder dispatch_width for computing register offsets

Francisco Jerez currojerez at riseup.net
Fri Jun 26 08:52:05 PDT 2015


Jason Ekstrand <jason at jlekstrand.net> writes:

> Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
>  src/mesa/drivers/dri/i965/brw_fs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
> index d4cc43d..d94a842 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs.h
> +++ b/src/mesa/drivers/dri/i965/brw_fs.h
> @@ -72,7 +72,7 @@ offset(fs_reg reg, const brw::fs_builder& bld, unsigned delta)
>     case MRF:
>     case ATTR:
>        return byte_offset(reg,
> -                         delta * MAX2(reg.width * reg.stride, 1) *
> +                         delta * bld.dispatch_width() * reg.stride *

Er...  This doesn't look right for stride == 0.  If you keep the
MAX2(.., 1) expression this patch is:

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

>                           type_sz(reg.type));
>     case UNIFORM:
>        reg.reg_offset += delta;
> -- 
> 2.4.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://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: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150626/e54e5b57/attachment.sig>


More information about the mesa-dev mailing list