[Mesa-dev] [PATCH] nvc0: translate compute shaders at program creation
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Oct 20 16:11:26 UTC 2016
On 10/20/2016 06:10 PM, Ilia Mirkin wrote:
> And is what we do for all the other shader types. I guess this got
> missed in your various rebases of compute? Or I missed it when I did
> the precompile thing... either way,
This has been missed for a long time, yeah. :-)
>
> Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
>
> On Thu, Oct 20, 2016 at 12:08 PM, Samuel Pitoiset
> <samuel.pitoiset at gmail.com> wrote:
>> This makes shader-db reports results for compute shaders.
>>
>> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
>> ---
>> src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
>> index aac296c..928b785 100644
>> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
>> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
>> @@ -685,6 +685,10 @@ nvc0_cp_state_create(struct pipe_context *pipe,
>>
>> prog->pipe.tokens = tgsi_dup_tokens((const struct tgsi_token *)cso->prog);
>>
>> + prog->translated = nvc0_program_translate(
>> + prog, nvc0_context(pipe)->screen->base.device->chipset,
>> + &nouveau_context(pipe)->debug);
>> +
>> return (void *)prog;
>> }
>>
>> --
>> 2.10.0
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
--
-Samuel
More information about the mesa-dev
mailing list