[Mesa-dev] [PATCH 2/3] gallium: add a pipe_context parameter to resource_get_handle

Marek Olšák maraeo at gmail.com
Wed Aug 24 18:24:09 UTC 2016


On Wed, Aug 24, 2016 at 7:20 PM, Rob Clark <robdclark at gmail.com> wrote:
> On Mon, Aug 22, 2016 at 10:39 AM, Marek Olšák <maraeo at gmail.com> wrote:
>> From: Marek Olšák <marek.olsak at amd.com>
>>
>> radeonsi needs to do some operations (DCC decompression) for OpenGL-OpenCL
>> interop and this is the only way to make it coherent with the current
>> context. It can optionally be set to NULL.
>
> so, random thought.. couldn't you just create your own internal
> decompression pipe_context (possibly only on-demand)?

That's what we are doing right now and it's doesn't work when the main
context is unflushed. You don't want to do decompression when you have
unflushed draw calls (with compression enabled) elsewhere. Those draw
calls would re-compress the resource.

Marek


More information about the mesa-dev mailing list