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>
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);