[Mesa-dev] [PATCH] mesa/prog: relative offsets into constbufs are not constant

Ian Romanick idr at freedesktop.org
Thu Sep 10 11:16:20 PDT 2015


On 07/01/2015 11:00 PM, Jose Fonseca wrote:
> On 02/07/15 06:55, Matt Turner wrote:
>> On Wed, Jul 1, 2015 at 3:22 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>> The optimization logic relies on being able to read out constbuf values
>>> from program parameters. However that only works if there's no relative
>>> addressing involved.
>>>
>>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91173
>>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>>> ---
>>
>> It would be a pretty neat project to make i915 and r200 consume NIR.
>>
>> We'd get to delete Mesa IR and these optimization passes and probably
>> generate better code.
> 
> Or maybe have IR -> NIR -> IR, allowing to remove the optimization passes.

I think you'd also need this in the short term.  To delete Mesa IR, not
only would i915 and r200 have to consume NIR to generate native code,
but you'd also need a NIR interpreter, for example, to support vertex
programs on i915.

> Jose
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list