diff options
author | Kenneth Graunke <[email protected]> | 2018-06-20 16:11:08 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | f12b079c0ed5d02413f43abe39380e47d6874b74 (patch) | |
tree | 4a7d99e3de1a040057b4fb3ba855de2d83290d2a /src | |
parent | 81f899c148d181b2594222167388d0f8b6e4849c (diff) |
iris: actually init num_viewports
fixes regressions
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_program.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index 136b1c388df..b4bfb45ec4c 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -452,7 +452,9 @@ update_last_vue_map(struct iris_context *ice) // XXX: could use ctx->Const.MaxViewports for old API efficiency ice->state.num_viewports = (vue_map->slots_valid & VARYING_BIT_VIEWPORT) ? IRIS_MAX_VIEWPORTS : 1; - ice->state.dirty |= IRIS_DIRTY_CLIP | IRIS_DIRTY_SF_CL_VIEWPORT; + ice->state.dirty |= IRIS_DIRTY_CLIP | + IRIS_DIRTY_SF_CL_VIEWPORT | + IRIS_DIRTY_SCISSOR_RECT; // XXX: CC_VIEWPORT? } diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 8fd0ad83b94..d35bcd4eb28 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -3343,6 +3343,7 @@ genX(init_state)(struct iris_context *ice) ice->state.dirty = ~0ull; + ice->state.num_viewports = 1; ice->state.cso_vp = calloc(1, sizeof(struct iris_viewport_state)); ice->state.cso_vertex_buffers = calloc(1, sizeof(struct iris_vertex_buffer_state)); |