[Mesa-dev] [PATCH v2 05/20] i965: Use <0, 2, 1> region for scalar DF sources on IVB/BYT.
Matt Turner
mattst88 at gmail.com
Wed Jan 18 19:39:34 UTC 2017
On Wed, Jan 18, 2017 at 2:45 AM, Samuel Iglesias Gonsálvez
<siglesias at igalia.com> wrote:
> On Tue, 2017-01-17 at 13:33 -0800, Francisco Jerez wrote:
>> Samuel Iglesias Gonsálvez <siglesias at igalia.com> writes:
>>
>> > From: Matt Turner <mattst88 at gmail.com>
>> >
>> > On HSW+, scalar DF sources can be accessed using the normal <0,1,0>
>> > region, but on IVB and BYT DF regions must be programmed in terms
>> > of
>> > floats. A <0,2,1> region accomplishes this.
>>
>> Any reason you're doing this here twice instead of during fs_reg to
>> brw_reg conversion?
>>
>
> I have modified locally this patch to do it in brw_reg_from_fs_reg().
> Matt, if you agree with Curro's suggestion, I can keep the new version
> in my branch instead of this.
I found your patch. Looks good to me.
I just have one request: order the comparisons and assignments as
vstride, width, hstride -- the same way they appear in the <V,W,H>
regioning notation.
More information about the mesa-dev
mailing list