radeonsi: ignore PIPE_RESOURCE_FLAG_MAP_COHERENT
We treat coherent and non-coherent buffers the same. And move external_usage for better packing. Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
9322974ec7
commit
dfeb61c5cf
|
@ -142,8 +142,7 @@ void si_init_resource_fields(struct si_screen *sscreen,
|
|||
}
|
||||
|
||||
if (res->b.b.target == PIPE_BUFFER &&
|
||||
res->b.b.flags & (PIPE_RESOURCE_FLAG_MAP_PERSISTENT |
|
||||
PIPE_RESOURCE_FLAG_MAP_COHERENT)) {
|
||||
res->b.b.flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) {
|
||||
/* Use GTT for all persistent mappings with older
|
||||
* kernels, because they didn't always flush the HDP
|
||||
* cache before CS execution.
|
||||
|
|
|
@ -216,12 +216,12 @@ struct r600_resource {
|
|||
*/
|
||||
bool TC_L2_dirty;
|
||||
|
||||
/* Whether the resource has been exported via resource_get_handle. */
|
||||
unsigned external_usage; /* PIPE_HANDLE_USAGE_* */
|
||||
|
||||
/* Whether this resource is referenced by bindless handles. */
|
||||
bool texture_handle_allocated;
|
||||
bool image_handle_allocated;
|
||||
|
||||
/* Whether the resource has been exported via resource_get_handle. */
|
||||
unsigned external_usage; /* PIPE_HANDLE_USAGE_* */
|
||||
};
|
||||
|
||||
struct r600_transfer {
|
||||
|
|
Loading…
Reference in New Issue