mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 12:40:09 +01:00
i965/fs: Allocate the param_size array dynamically.
Useful because the total number of uniform components might exceed MAX_UNIFORMS * 4 in some cases because of the image metadata we'll be passing as push constants. Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
eef710fc53
commit
8928d7860a
2 changed files with 2 additions and 2 deletions
|
|
@ -491,7 +491,7 @@ public:
|
|||
struct brw_wm_compile *c;
|
||||
unsigned int sanity_param_count;
|
||||
|
||||
int param_size[MAX_UNIFORMS * 4];
|
||||
int *param_size;
|
||||
|
||||
int *virtual_grf_sizes;
|
||||
int virtual_grf_count;
|
||||
|
|
|
|||
|
|
@ -2992,7 +2992,7 @@ fs_visitor::fs_visitor(struct brw_context *brw,
|
|||
|
||||
this->spilled_any_registers = false;
|
||||
|
||||
memset(&this->param_size, 0, sizeof(this->param_size));
|
||||
this->param_size = rzalloc_array(mem_ctx, int, stage_prog_data->nr_params);
|
||||
}
|
||||
|
||||
fs_visitor::~fs_visitor()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue