mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 22:40:09 +01:00
radeonsi: fix the R600_RESOURCE_FLAG_UNMAPPABLE check
The flag is on the pipe_resource, not the r600_resource.
I don't see an obvious bug related to this, but it could potentially lead
to suboptimal placement of some resources.
Fixes: a41587433c ("gallium/radeon: add R600_RESOURCE_FLAG_UNMAPPABLE")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
a1e257a5bf
commit
5e2962c949
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ void si_init_resource_fields(struct si_screen *sscreen,
|
|||
|
||||
/* Tiled textures are unmappable. Always put them in VRAM. */
|
||||
if ((res->b.b.target != PIPE_BUFFER && !rtex->surface.is_linear) ||
|
||||
res->flags & R600_RESOURCE_FLAG_UNMAPPABLE) {
|
||||
res->b.b.flags & R600_RESOURCE_FLAG_UNMAPPABLE) {
|
||||
res->domains = RADEON_DOMAIN_VRAM;
|
||||
res->flags |= RADEON_FLAG_NO_CPU_ACCESS |
|
||||
RADEON_FLAG_GTT_WC;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue