mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
panfrost: Remove redundant NULL check
Already checked in the callee, no need to check in the caller. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9164>
This commit is contained in:
parent
03c2c0f0c4
commit
8db8b72951
1 changed files with 2 additions and 4 deletions
|
|
@ -62,12 +62,10 @@ panfrost_fragment_job(struct panfrost_batch *batch, bool has_draws)
|
|||
|
||||
struct pipe_framebuffer_state *fb = &batch->key;
|
||||
|
||||
for (unsigned i = 0; i < fb->nr_cbufs; ++i) {
|
||||
for (unsigned i = 0; i < fb->nr_cbufs; ++i)
|
||||
panfrost_initialize_surface(batch, fb->cbufs[i]);
|
||||
}
|
||||
|
||||
if (fb->zsbuf)
|
||||
panfrost_initialize_surface(batch, fb->zsbuf);
|
||||
panfrost_initialize_surface(batch, fb->zsbuf);
|
||||
|
||||
/* The passed tile coords can be out of range in some cases, so we need
|
||||
* to clamp them to the framebuffer size to avoid a TILE_RANGE_FAULT.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue