diff options
author | Kenneth Graunke <[email protected]> | 2018-12-31 22:03:35 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:11 -0800 |
commit | 8eda6f22885e7af66affec83a94ba5a087180842 (patch) | |
tree | 65ff3520c095a0cf228d79a7bbd8680fc25d0b5d /src/gallium/drivers/r300/r300_resource.c | |
parent | bacc722d1376e95003da9904be9afc979b2be332 (diff) |
iris: Handle PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE somewhat
Various places in the transfer code need to know whether they must
read the existing resource's values. Rather than checking both flags
everywhere, just make PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE also flag
PIPE_TRANSFER_DISCARD_RANGE - if we can discard everything, we can
discard a subrange, too.
Obviously, we can do better for PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE,
but eventually u_threaded_context should handle swapping out buffers
for new idle buffers, anyway. In the meantime, this is at least better.
Diffstat (limited to 'src/gallium/drivers/r300/r300_resource.c')
0 files changed, 0 insertions, 0 deletions