Skip to content

Commit

Permalink
utils/upload: fix use of formats with unusual sample order
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 authored and haasn committed Sep 17, 2024
1 parent 3cb4d2d commit a018ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/upload.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pl_fmt pl_plane_find_fmt(pl_gpu gpu, int out_map[4], const struct pl_plane_data
int size = data->component_size[i];
if (size && (idx >= 4 || fmt->host_bits[idx] != size))
goto next_fmt;
out_map[idx++] = data->component_map[i];
out_map[fmt->sample_order[idx++]] = data->component_map[i];
}

// Reject misaligned formats, check this last to only log such errors
Expand Down

0 comments on commit a018ab0

Please sign in to comment.