<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 4, 2018 at 1:19 AM Iago Toral Quiroga <<a href="mailto:itoral@igalia.com">itoral@igalia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
src/intel/compiler/brw_reg_type.h | 18 ++++++++++++++++++<br>
1 file changed, 18 insertions(+)<br>
<br>
diff --git a/src/intel/compiler/brw_reg_type.h b/src/intel/compiler/brw_reg_type.h<br>
index ffbec90d3fe..a3365b7e34c 100644<br>
--- a/src/intel/compiler/brw_reg_type.h<br>
+++ b/src/intel/compiler/brw_reg_type.h<br>
@@ -82,6 +82,24 @@ brw_reg_type_is_floating_point(enum brw_reg_type type)<br>
}<br>
}<br>
<br>
+static inline bool<br>
+brw_reg_type_is_integer(enum brw_reg_type type)<br>
+{<br>
+ switch (type) {<br>
+ case BRW_REGISTER_TYPE_Q:<br>
+ case BRW_REGISTER_TYPE_UQ:<br>
+ case BRW_REGISTER_TYPE_D:<br>
+ case BRW_REGISTER_TYPE_UD:<br>
+ case BRW_REGISTER_TYPE_W:<br>
+ case BRW_REGISTER_TYPE_UW:<br>
+ case BRW_REGISTER_TYPE_B:<br>
+ case BRW_REGISTER_TYPE_UV:<br>
+ return true;<br>
+ default:<br>
+ return false;<br>
+ }<br>
+}<br>
+<br>
unsigned<br>
brw_reg_type_to_hw_type(const struct gen_device_info *devinfo,<br>
enum brw_reg_file file, enum brw_reg_type type);<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>