<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 13, 2017 at 7:35 AM, Alejandro Piñeiro <span dir="ltr"><<a href="mailto:apinheiro@igalia.com" target="_blank">apinheiro@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Eduardo Lima Mitev <<a href="mailto:elima@igalia.com">elima@igalia.com</a>><br>
<br>
---<br>
src/intel/compiler/brw_fs.cpp | 3 +++<br>
src/intel/compiler/brw_shader.<wbr>cpp | 6 ++++++<br>
2 files changed, 9 insertions(+)<br>
<br>
diff --git a/src/intel/compiler/brw_fs.<wbr>cpp b/src/intel/compiler/brw_fs.<wbr>cpp<br>
index a2a99b7..0862918 100644<br>
--- a/src/intel/compiler/brw_fs.<wbr>cpp<br>
+++ b/src/intel/compiler/brw_fs.<wbr>cpp<br>
@@ -456,7 +456,10 @@ type_size_scalar(const struct glsl_type *type)<br>
switch (type->base_type) {<br>
case GLSL_TYPE_UINT:<br>
case GLSL_TYPE_INT:<br>
+ case GLSL_TYPE_UINT16:<br>
+ case GLSL_TYPE_INT16:<br>
case GLSL_TYPE_FLOAT:<br>
+ case GLSL_TYPE_HALF_FLOAT:<br></blockquote><div><br></div><div>Is this correct? Should it be DIV_ROUND_UP(type->components(), 2)?</div><div><br></div><div>Also, you might as well squash this into patch 12<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
case GLSL_TYPE_BOOL:<br>
return type->components();<br>
case GLSL_TYPE_DOUBLE:<br>
diff --git a/src/intel/compiler/brw_<wbr>shader.cpp b/src/intel/compiler/brw_<wbr>shader.cpp<br>
index 53d0742..9c43391 100644<br>
--- a/src/intel/compiler/brw_<wbr>shader.cpp<br>
+++ b/src/intel/compiler/brw_<wbr>shader.cpp<br>
@@ -34,14 +34,20 @@ enum brw_reg_type<br>
brw_type_for_base_type(const struct glsl_type *type)<br>
{<br>
switch (type->base_type) {<br>
+ case GLSL_TYPE_HALF_FLOAT:<br>
+ return BRW_REGISTER_TYPE_HF;<br>
case GLSL_TYPE_FLOAT:<br>
return BRW_REGISTER_TYPE_F;<br>
case GLSL_TYPE_INT:<br>
case GLSL_TYPE_BOOL:<br>
case GLSL_TYPE_SUBROUTINE:<br>
return BRW_REGISTER_TYPE_D;<br>
+ case GLSL_TYPE_INT16:<br>
+ return BRW_REGISTER_TYPE_W;<br>
case GLSL_TYPE_UINT:<br>
return BRW_REGISTER_TYPE_UD;<br>
+ case GLSL_TYPE_UINT16:<br>
+ return BRW_REGISTER_TYPE_UW;<br>
case GLSL_TYPE_ARRAY:<br>
return brw_type_for_base_type(type-><wbr>fields.array);<br>
case GLSL_TYPE_STRUCT:<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.3<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">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/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>