<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div style="" class=""><span style="" class=""><br style=""></span></div><div style="display: block" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt"> <div class="" style="font-family: times new roman, new york, times, serif; font-size: 12pt">>Hi all,<div style="" class=""><div style="" class="" id="yiv7111231271"><div style="" class="" id="yiv7111231271yqtfd85832"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div class="" style="display:block"><div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:10pt"><div class="" style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="" class=""><div style="" class="" id="yiv7111231271"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div class="" style="">><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">>First of all sorry for the newbie question but I'm having trouble figuring
out what I need to do next for the >arrays of arrays implementation. I'm just looking for some quick pointers in the right direction.</div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">>I'm currently looking at what needs to be done to update ir_set_program_inouts.cpp my current thinking is I >need flatten any multidimensional array indices into a single 1D index for marking as used in the bitfield >which is fine (please correct me if I'm heading in the wrong direction). However for this to work obviously the >elements order is important, where is the code
that assocates the locations in for example the InputsRead >bitfield with an array itself in other words how to I make sure a flattened index is marking the correct spot as >read? I'm assuming this code would also need to be updated for multidimensional arrays.</div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br style="" class="">ok looks like the code I'm looking for is in lower_packed_varyings.cpp I'm still wondering however if it would be better to just leave this alone and simply flatten input/output/uniform mulitdimensional arrays at an earlier point.<br style="" class=""><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;background-color:transparent;font-style:normal">>Or am I totally off track? Maybe all of this could be avoided by using some kind of lowering pass to flattern >multidimensional arrays to single dimensional arrays (or 2D array for gemotry shaders input) before >ir_set_program_inouts is called and any linking is done? This would probably solve any issues with uniform >linking also.<br style="" class="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">><br style="" class="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">>I hope my questions make sense. If not people feel free to ignore my questions
and just point me in the right >direction.</div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">><br style="" class="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">>Thanks,</div><div class="" style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">>Tim<br style="" class="" clear="none"></div></div></div></div><br style="" class="" clear="none"><br style="" class="" clear="none"></div> </div> </div> </div> </div></div></div></div><br style="" class="">_______________________________________________<br
style="" class="" clear="none">mesa-dev mailing list<br style="" class="" clear="none"><a style="" class="" shape="rect" ymailto="mailto:mesa-dev@lists.freedesktop.org" href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br style="" class="" clear="none"><a style="" class="" shape="rect" href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><div style="" class="" id="yqtfd58239"><br style="" class="" clear="none"></div><br style="" class=""><br style="" class=""></div> </div> </div> </div> </div></body></html>