mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 15:10:12 +01:00
iris: fix constant packet length to match i965
This commit is contained in:
parent
201a4d923c
commit
badefe50a0
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue