radeonsi: fix the R600_RESOURCE_FLAG_UNMAPPABLE check
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 23 Nov 2017 09:25:34 +0000 (10:25 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Dec 2017 10:18:14 +0000 (11:18 +0100)
commit5e2962c9492e6a948516f6360f973e2e92034b01
treea5aad2a5b622aa146b28ef3b2f6c9e1950b3e8e6
parenta1e257a5bfaa0e1b3bbfd9846311b8f419d4c626
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: a41587433c4d ("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>
src/gallium/drivers/radeon/r600_buffer_common.c