[Mesa-dev] [PATCH 1/1] r600, compute: Use the BO format for RAT instead of hardwired R32_UINT

Marek Olšák maraeo at gmail.com
Fri Feb 5 10:24:18 UTC 2016


On Fri, Feb 5, 2016 at 1:11 AM, Jan Vesely <jan.vesely at rutgers.edu> wrote:
> On Thu, 2016-02-04 at 15:56 -0500, Jan Vesely wrote:
>> r600_compute_buffer_alloc_vram uses pipe_buffer_create, which sets
>> format to
>> PIPE_FORMAT_R8_UNORM
>
> RFC:
> Looks like more is needed to fix this. the code expects R32 format.
> Do we change the one used in pipe_buffer_create?
> or just remove the assertion?
> or is there a way to convert the format (other than plain format =)

Buffer resources are untyped and pipe_resource::format should be
ignored for them.

For drawing, only the type from pipe_sampler_view and pipe_surface matters.

Marek


More information about the mesa-dev mailing list