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:
Francisco Jerez 2014-02-19 15:36:48 +01:00
parent eef710fc53
commit 8928d7860a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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()