diff options
author | Jason Ekstrand <[email protected]> | 2017-09-29 10:12:12 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-10-12 22:39:30 -0700 |
commit | c0435b204a51ae2d3409416fe11122f3b7c88bc3 (patch) | |
tree | f03578404352f1758cce70a44a7ca471fe7a150a /src/mesa/drivers/dri/i965/brw_cs.c | |
parent | 4d4f14937683110c7b61acb1555f31d070316b04 (diff) |
intel/compiler: Stop adding params for texture sizes
We haven't needed this ever since we started using NIR for lowering
rectangle textures.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_cs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_cs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cs.c b/src/mesa/drivers/dri/i965/brw_cs.c index 0c505b3e505..41a543138ba 100644 --- a/src/mesa/drivers/dri/i965/brw_cs.c +++ b/src/mesa/drivers/dri/i965/brw_cs.c @@ -53,7 +53,6 @@ brw_codegen_cs_prog(struct brw_context *brw, struct brw_cs_prog_key *key) { const struct gen_device_info *devinfo = &brw->screen->devinfo; - struct gl_context *ctx = &brw->ctx; const GLuint *program; void *mem_ctx = ralloc_context(NULL); GLuint program_size; @@ -87,8 +86,6 @@ brw_codegen_cs_prog(struct brw_context *brw, /* The backend also sometimes add a param for the thread local id. */ prog_data.thread_local_id_index = param_count++; - /* The backend also sometimes adds params for texture size. */ - param_count += 2 * ctx->Const.Program[MESA_SHADER_COMPUTE].MaxTextureImageUnits; prog_data.base.param = rzalloc_array(NULL, uint32_t, param_count); prog_data.base.pull_param = rzalloc_array(NULL, uint32_t, param_count); prog_data.base.nr_params = param_count; |