mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
st/mesa: fix uninitialized/random clip plane state vars in lower_ucp
Fixes:584f27326c- st/mesa: factor ucp-lowering logic into helper Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946> (cherry picked from commitfdd3a448ae)
This commit is contained in:
parent
770f46c781
commit
b52bb0dc5c
2 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@
|
|||
"description": "st/mesa: fix uninitialized/random clip plane state vars in lower_ucp",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "584f27326c1560cc23538cb76fb734ab492ccc3c"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -666,7 +666,7 @@ lower_ucp(struct st_context *st,
|
|||
PIPE_CAP_NIR_COMPACT_ARRAYS);
|
||||
bool use_eye = st->ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX] != NULL;
|
||||
|
||||
gl_state_index16 clipplane_state[MAX_CLIP_PLANES][STATE_LENGTH];
|
||||
gl_state_index16 clipplane_state[MAX_CLIP_PLANES][STATE_LENGTH] = {{0}};
|
||||
for (int i = 0; i < MAX_CLIP_PLANES; ++i) {
|
||||
if (use_eye) {
|
||||
clipplane_state[i][0] = STATE_CLIPPLANE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue