mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
zink: drop extra set of parens
We don't need to be doubly sure here, we can just use a single set of parents instead. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8858>
This commit is contained in:
parent
a87d648597
commit
5e4ae3466b
1 changed files with 1 additions and 1 deletions
|
|
@ -589,7 +589,7 @@ zink_transfer_map(struct pipe_context *pctx,
|
|||
trans->base.layer_stride = 0;
|
||||
ptr = ((uint8_t *)ptr) + box->x;
|
||||
} else {
|
||||
if (res->optimal_tiling || ((res->base.usage != PIPE_USAGE_STAGING))) {
|
||||
if (res->optimal_tiling || (res->base.usage != PIPE_USAGE_STAGING)) {
|
||||
enum pipe_format format = pres->format;
|
||||
if (usage & PIPE_MAP_DEPTH_ONLY)
|
||||
format = util_format_get_depth_only(pres->format);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue