<div dir="ltr"><div>Do you need break statements?<br><br></div>Marek<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 5, 2018 at 1:34 AM, Timothy Arceri <span dir="ltr"><<a href="mailto:tarceri@itsqueeze.com" target="_blank">tarceri@itsqueeze.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">V2: add missing intrinsics (Spotted-by: Samuel Pitoiset)<br>
---<br>
 src/gallium/drivers/radeonsi/<wbr>si_shader_nir.c | 13 ++++++++++++-<br>
 1 file changed, 12 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/gallium/drivers/<wbr>radeonsi/si_shader_nir.c b/src/gallium/drivers/<wbr>radeonsi/si_shader_nir.c<br>
index 01c8554272f..362b7445cc5 100644<br>
--- a/src/gallium/drivers/<wbr>radeonsi/si_shader_nir.c<br>
+++ b/src/gallium/drivers/<wbr>radeonsi/si_shader_nir.c<br>
@@ -123,6 +123,13 @@ static void scan_instruction(struct tgsi_shader_info *info,<br>
                case nir_intrinsic_load_tess_level_<wbr>outer:<br>
                        info->reads_tess_factors = true;<br>
                        break;<br>
+               case nir_intrinsic_image_var_load:<br>
+               case nir_intrinsic_image_var_size:<br>
+               case nir_intrinsic_image_var_<wbr>samples: {<br>
+                       nir_variable *var = intr->variables[0]->var;<br>
+                       if (var->data.bindless)<br>
+                               info->uses_bindless_images = true;<br>
+               }<br>
                case nir_intrinsic_image_var_store:<br>
                case nir_intrinsic_image_var_<wbr>atomic_add:<br>
                case nir_intrinsic_image_var_<wbr>atomic_min:<br>
@@ -131,7 +138,11 @@ static void scan_instruction(struct tgsi_shader_info *info,<br>
                case nir_intrinsic_image_var_<wbr>atomic_or:<br>
                case nir_intrinsic_image_var_<wbr>atomic_xor:<br>
                case nir_intrinsic_image_var_<wbr>atomic_exchange:<br>
-               case nir_intrinsic_image_var_<wbr>atomic_comp_swap:<br>
+               case nir_intrinsic_image_var_<wbr>atomic_comp_swap: {<br>
+                       nir_variable *var = intr->variables[0]->var;<br>
+                       if (var->data.bindless)<br>
+                               info->uses_bindless_images = true;<br>
+               }<br>
                case nir_intrinsic_store_ssbo:<br>
                case nir_intrinsic_ssbo_atomic_add:<br>
                case nir_intrinsic_ssbo_atomic_<wbr>imin:<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.14.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>