[Mesa-dev] [PATCH 01/13] nir/builder: add nir_imm_uint()
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Tue Apr 19 13:57:54 UTC 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 14/04/16 22:39, Jason Ekstrand wrote:
> On Tue, Apr 12, 2016 at 1:05 AM, Samuel Iglesias Gonsálvez <
> siglesias at igalia.com> wrote:
>
>> From: Connor Abbott <connor.w.abbott at intel.com>
>>
>> --- src/compiler/nir/nir_builder.h | 7 +++++++ 1 file changed, 7
>> insertions(+)
>>
>> diff --git a/src/compiler/nir/nir_builder.h
>> b/src/compiler/nir/nir_builder.h index 29b13fb..38a1cf7 100644
>> --- a/src/compiler/nir/nir_builder.h +++
>> b/src/compiler/nir/nir_builder.h @@ -154,6 +154,13 @@
>> nir_imm_ivec4(nir_builder *build, int x, int y, int z, int w) }
>>
>> static inline nir_ssa_def * +nir_imm_uint(nir_builder *build,
>> unsigned x) +{ + nir_const_value v = { { .u32 = {x, 0, 0, 0} }
>> }; + return nir_build_imm(build, 1, v); +}
>>
>
> I don't really mind this being a thing, but it's not really
> needed. nir_imm_int is exactly the same thing.
>
Right, we can use nir_imm_int() instead. I will remove this patch.
Thanks,
Sam
>
>> + +static inline nir_ssa_def * nir_build_alu(nir_builder *build,
>> nir_op op, nir_ssa_def *src0, nir_ssa_def *src1, nir_ssa_def
>> *src2, nir_ssa_def *src3) { -- 2.5.0
>>
>> _______________________________________________ mesa-dev mailing
>> list mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJXFjliAAoJEH/0ujLxfcNDfwoP/jNb4x78PQwpZCbo/qIVbVx9
f/r6jPFDN3aMxR1I7bvLzhxxj7ZOhQbZLXO24+lPb7Zzx9tK3oX/dFzZ/XqwLUI8
2KAAg/rjcNiVbd5wocke0FNaOoTI0Z8w28Y1AxHCtqA7N7WINL59hbvYhRwqAYeH
yJ1f3mOcUbLICRUEzsTY99C0OKMm8ef70AP0996k5tppOSvU89skSoBMBgO00+8N
wjgTCsLV03eNJj79um2QnTZxzQX24pWMoIMt0oDxG6JONmwSKBgwVHJsKFyKd8je
CABBm0gQlHiv0zlWGfBG1ZUA38L3fruJWl50V6DFViI/1b3+R4R4Zhzq3msIzymv
XuuIKD8zl1210i0ohlzMUjhRqoPvUi5PPG8hrcrtZsFtmb0QPM/ePQuSuPnoljoY
80bEhhIShUXAuPPNOLMrCkoZ8JgRzgtotp9lEVYpqgZUxbq3wIWs+DZaBtsI+o5B
MDUNVBByWsJcyh1qD5PPuXqnNQS58i5BP4kGk6JXUIv7es3HrIc3RViya6vrowtJ
kCVgBnfpg5+pPBYzhmYP1EXrzZMm5TyEOfops7XQqzdnpI/C25ydC92lOvslUoyv
MZytVAE35MEXKvKiAkLkSZrHP18E8j9Yn6n7e/Tkhq25k03/agMSN2gt4WZO6Edm
japUgmWx9ir/wX1qroiZ
=c/TR
-----END PGP SIGNATURE-----
More information about the mesa-dev
mailing list