diff options
author | Kenneth Graunke <[email protected]> | 2018-07-16 16:45:22 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | 6e7e49cc4f38e070c3052dd8dfc8a0f4137e9f88 (patch) | |
tree | a91caea79e14206a3644546b73b23a76f00af66e /src | |
parent | 841fc3e3caf5ffb88ae2e4d92adec9b355ce20b4 (diff) |
iris: fix crash
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_program.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index eba97450c6e..26c40efe440 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -117,12 +117,13 @@ bind_state(struct iris_context *ice, gl_shader_stage stage) { uint64_t dirty_bit = IRIS_DIRTY_UNCOMPILED_VS << stage; + const uint64_t nos = ish ? ish->nos : 0; ice->shaders.uncompiled[stage] = ish; ice->state.dirty |= dirty_bit; for (int i = 0; i < IRIS_NOS_COUNT; i++) { - if (ish->nos & (1 << i)) + if (nos & (1 << i)) ice->state.dirty_for_nos[i] |= dirty_bit; else ice->state.dirty_for_nos[i] &= ~dirty_bit; |