diff options
author | Kenneth Graunke <[email protected]> | 2018-05-29 07:32:43 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:06 -0800 |
commit | badefe50a06d9e7196367dcaa1f233ff68d5c67c (patch) | |
tree | 9e1eee7f7d0c3d62ad2138dc36bc259ff32140d7 /src/gallium/drivers/iris/iris_state.c | |
parent | 201a4d923c15ccfaf4c9eeb866a72b9cc78b89bc (diff) |
iris: fix constant packet length to match i965
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 87a34d73721..bcbab9e2b07 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -2177,8 +2177,11 @@ iris_upload_render_state(struct iris_context *ice, continue; struct iris_shader_state *shs = &ice->shaders.state[stage]; + struct iris_compiled_shader *shader = ice->shaders.prog[stage]; + struct brw_stage_prog_data *prog_data = (void *) shader->prog_data; // XXX: DIV_ROUND_UP(prog_data->nr_params, 8)? - shs->const_size = DIV_ROUND_UP(cbuf0->buffer_size, 32); + //shs->const_size = DIV_ROUND_UP(cbuf0->buffer_size, 32); + shs->const_size = DIV_ROUND_UP(prog_data->nr_params, 8); u_upload_data(ice->ctx.const_uploader, 0, 32 * shs->const_size, 32, cbuf0->user_buffer, &shs->const_offset, &shs->push_resource); |