[Mesa-dev] [PATCH] r600, compute: force tiling on 2D and 3D texture compute resources
Zoltán Gilián
zoltan.gilian at gmail.com
Fri Jul 31 01:40:46 PDT 2015
> Also, does the same restriction apply to SI and newer GPUs?
I don't know. I can only test this on an evergreen (juniper) GPU.
On Fri, Jul 31, 2015 at 5:15 AM, Michel Dänzer <michel at daenzer.net> wrote:
> On 31.07.2015 07:06, Zoltan Gilian wrote:
>> To circumvent a problem occuring when LINEAR_ALIGNED array mode is
>> selected on a TEXTURE_2D RAT.
>> This configuration causes MEM_RAT STORE_TYPED to write to incorrect
>> locations.
>
> [...]
>
>> @@ -715,10 +716,15 @@ static unsigned r600_choose_tiling(struct r600_common_screen *rscreen,
>> if (templ->flags & R600_RESOURCE_FLAG_TRANSFER)
>> return RADEON_SURF_MODE_LINEAR_ALIGNED;
>>
>> + /* Force tiling on TEXTURE_2D and TEXTURE_3D compute resources. */
>> + if ((templ->target == PIPE_TEXTURE_2D ||
>> + templ->target == PIPE_TEXTURE_3D) &&
>> + (templ->bind & PIPE_BIND_COMPUTE_RESOURCE))
>> + force_tiling = true;
>
> This should test (templ->bind & PIPE_BIND_COMPUTE_RESOURCE) first.
>
> Also, does the same restriction apply to SI and newer GPUs?
>
>
> --
> Earthling Michel Dänzer | http://www.amd.com
> Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list