[Mesa-dev] [PATCH 14/15] radeonsi: release GS rings at context destruction

Marek Olšák maraeo at gmail.com
Sat Sep 27 10:29:26 PDT 2014


There should be no warning on master. On master, the variables have
the pipe_resource type. On stable branches, the variables have the
pipe_constant_buffer type, so the expression should be changed to
&...ring->buffer. Without that, it probably crashes.

Marek

On Sat, Sep 27, 2014 at 5:45 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> Hi Marek,
>
> This commit introduces a couple of compiler warnings
> warning: passing argument 1 of 'pipe_resource_reference' from
> incompatible pointer type
>
> Afaics the same behaviour is resent on master, and the commit is simply
> missing a cast. I've picked up the patch for 10.2 (and 10.3 in a moment)
> but do let me know if I'm missing something.
>
> Thanks
> Emil
>
> On 19/09/14 21:17, Marek Olšák wrote:
>> From: Marek Olšák <marek.olsak at amd.com>
>>
>> ---
>>  src/gallium/drivers/radeonsi/si_pipe.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
>> index 4f9c876..2cce5cc 100644
>> --- a/src/gallium/drivers/radeonsi/si_pipe.c
>> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
>> @@ -38,6 +38,8 @@ static void si_destroy_context(struct pipe_context *context)
>>
>>       si_release_all_descriptors(sctx);
>>
>> +     pipe_resource_reference(&sctx->esgs_ring, NULL);
>> +     pipe_resource_reference(&sctx->gsvs_ring, NULL);
>>       pipe_resource_reference(&sctx->null_const_buf.buffer, NULL);
>>       r600_resource_reference(&sctx->border_color_table, NULL);
>>
>>
>


More information about the mesa-dev mailing list