<div dir="ltr">I'll send out v3 in the next couple of days.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Sun, May 27, 2018 at 7:17 PM Dave Airlie <<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11 May 2018 at 08:30, Gurchetan Singh <<a href="mailto:gurchetansingh@google.com" target="_blank">gurchetansingh@google.com</a>> wrote:<br>
> On Wed, May 9, 2018 at 9:06 PM, Dave Airlie <<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>> wrote:<br>
>> On 10 May 2018 at 13:48, Dave Airlie <<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>> wrote:<br>
>>> On 9 May 2018 at 09:17, Gurchetan Singh <<a href="mailto:gurchetansingh@chromium.org" target="_blank">gurchetansingh@chromium.org</a>> wrote:<br>
>>>> On Tue, May 8, 2018 at 3:34 PM, Dave Airlie <<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>> wrote:<br>
>>>>> On 9 May 2018 at 05:06, Gurchetan Singh <<a href="mailto:gurchetansingh@chromium.org" target="_blank">gurchetansingh@chromium.org</a>> wrote:<br>
>>>>>> This series is intended to have no functional impact. This mainly<br>
>>>>>> moves code around and adds a conversion table in attempt to:<br>
>>>>>><br>
>>>>>> - Add some abstraction to our TGSI to GLSL logic.<br>
>>>>>> - Split up large functions.<br>
>>>>>><br>
>>>>>> This was tested with the dEQP GLES3 suite, where no regressions were<br>
>>>>>> observed. This increases the overall code line count, but may make<br>
>>>>>> subsequent changes / refactors a little easier.<br>
>>>>>><br>
>>>>><br>
>>>>> I think these are mostly fine, however they are going to complicate landing<br>
>>>>> any of the work we have in branches quite heavily, we have fp64, most of<br>
>>>>> arb_gpu_shader5 and a chunk of gles3.1 sitting around, this will make<br>
>>>>> landing all of that a bit more work.<br>
>>>>><br>
>>>>> I'm also not sure about the 3 srcs, I think there are 4 srcs TGSI instructions<br>
>>>>> in my gpu_shader5 (bitfieldInsert)<br>
>>>><br>
>>>> Only 3 srcs is based on this blurb in the documentation -- "An opcode<br>
>>>> may have up to one destination register, known as dst, and between<br>
>>>> zero and three source registers, called src0 through src2".<br>
>>>> bitfieldInsert seems to use the destination as a source since it<br>
>>>> replaces "a bit region of ‘base’ with the low bits of ‘insert’":<br>
>>><br>
>>> Yeah unfortunately that's lies in the docs for bfi at least in the r600 driver<br>
>>> we access src[3]. tgsi_info_opcodes.h shows a few 4s in the number of<br>
>>> srcs fields.<br>
>><br>
>> Also dst[1] is used for FREXP/DFREXP.<br>
>><br>
>> So I'd definitely want the refactor to not go reducing those sizes.<br>
><br>
> Thanks for the info, I'll change back the sizes when I send out v3.<br>
<br>
Hey,<br>
<br>
Is there an updated version of this yet? I'd like to at least land the<br>
first patch<br>
since it seems a lot cleaner an less error prone.<br>
<br>
I'm happy to stall fp64/tess for these cleanups at this stage, I've<br>
nearly finished<br>
tessellation now (at least it passes nearly all the piglit tests).<br>
This would allow<br>
GL4.1 support and then if we get the GLES3.1 feature work done, we'd<br>
pretty much be close to hitting GL4.5 as well.<br>
<br>
Dave.<br>
</blockquote></div>