freedreno: initialize max_scissor

Somehow the initialization of this got lost somewhere along the way,
resulting in assuming minx/miny are always zero.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4976>
This commit is contained in:
Rob Clark 2020-05-09 12:31:20 -07:00 committed by Marge Bot
parent 1387e77801
commit 96b5a70f45

View file

@ -377,6 +377,14 @@ batch_from_key(struct fd_batch_cache *cache, struct key *key,
if (!batch)
return NULL;
/* reset max_scissor, which will be adjusted on draws
* according to the actual scissor.
*/
batch->max_scissor.minx = ~0;
batch->max_scissor.miny = ~0;
batch->max_scissor.maxx = 0;
batch->max_scissor.maxy = 0;
fd_screen_lock(ctx->screen);
_mesa_hash_table_insert_pre_hashed(cache->ht, hash, key, batch);