mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
1387e77801
commit
96b5a70f45
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue