mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
nvc0: don't upload UCPs if the shader doesn't use them
This commit is contained in:
parent
79eed0d224
commit
f09ee76c98
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ nvc0_validate_clip(struct nvc0_context *nvc0)
|
|||
nvc0_check_program_ucps(nvc0, vp, clip_enable);
|
||||
|
||||
if (nvc0->dirty & (NVC0_NEW_CLIP | (NVC0_NEW_VERTPROG << stage)))
|
||||
if (vp->vp.num_ucps <= PIPE_MAX_CLIP_PLANES)
|
||||
if (vp->vp.num_ucps > 0 && vp->vp.num_ucps <= PIPE_MAX_CLIP_PLANES)
|
||||
nvc0_upload_uclip_planes(nvc0, stage);
|
||||
|
||||
clip_enable &= vp->vp.clip_enable;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue