[Mesa-dev] [PATCH] radeonsi: handle big number of immediates dynamically

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Jan 11 14:47:10 UTC 2017



On 01/11/2017 03:16 PM, Marek Olšák wrote:
> On Wed, Jan 11, 2017 at 1:45 PM, Samuel Pitoiset
> <samuel.pitoiset at gmail.com> wrote:
>>
>>
>> On 01/11/2017 12:47 PM, Marek Olšák wrote:
>>>
>>> We don't have to use lp_build_tgsi_soa_context::immediates at all just
>>> as we don't use lp_build_tgsi_soa_context::temps.
>>
>>
>> You want to always allocate the array of immediates dynamically? And use
>> ctx->imms/ctx->imms_count like what we currently do for temps?
>
> Yes.

Ok.

>
> Eventually we can get rid of si_shader_context::soa and replace it
> with its parent structure - bld_base, because we don't use much from soa.

That would require to move soa::addr and soa::outputs in 
si_shader_context (after a quick look at the code).

>
> Marek
>


More information about the mesa-dev mailing list