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:
committed by
Marge Bot
parent
a87d648597
commit
5e4ae3466b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user