mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
gallium/radeon: require both WRITE and FLUSH_EXPLICIT in buffer_flush_region
spotted randomly. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
b8e552424e
commit
42fe45b451
1 changed files with 4 additions and 2 deletions
|
|
@ -482,8 +482,10 @@ static void r600_buffer_flush_region(struct pipe_context *ctx,
|
|||
struct pipe_transfer *transfer,
|
||||
const struct pipe_box *rel_box)
|
||||
{
|
||||
if (transfer->usage & (PIPE_TRANSFER_WRITE |
|
||||
PIPE_TRANSFER_FLUSH_EXPLICIT)) {
|
||||
unsigned required_usage = PIPE_TRANSFER_WRITE |
|
||||
PIPE_TRANSFER_FLUSH_EXPLICIT;
|
||||
|
||||
if ((transfer->usage & required_usage) == required_usage) {
|
||||
struct pipe_box box;
|
||||
|
||||
u_box_1d(transfer->box.x + rel_box->x, rel_box->width, &box);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue