diff options
author | Jason Ekstrand <[email protected]> | 2017-09-28 19:04:31 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-10-12 22:39:30 -0700 |
commit | cfc7ed75eb8baab69308ed520f97a3efd75fb548 (patch) | |
tree | d270bd5ba21c32449b64bc6a0ee74dc5cda60ec4 /src/mesa/drivers/dri/i965/brw_curbe.c | |
parent | 6ee4b352c90e93c82d900328716c1068a7188b91 (diff) |
i965: Store image_param in brw_context instead of prog_data
This burns an extra 10k of memory or so in the case where you don't have
any images. However, if you have several shaders which use images, this
should be much less memory. It also gets rid of a part of prog_data
that really has nothing to do with the compiler.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_curbe.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_curbe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c b/src/mesa/drivers/dri/i965/brw_curbe.c index 9a9c6d08a0f..c747110e310 100644 --- a/src/mesa/drivers/dri/i965/brw_curbe.c +++ b/src/mesa/drivers/dri/i965/brw_curbe.c @@ -227,7 +227,7 @@ brw_upload_constant_buffer(struct brw_context *brw) GLuint offset = brw->curbe.wm_start * 16; /* BRW_NEW_FS_PROG_DATA | _NEW_PROGRAM_CONSTANTS: copy uniform values */ - brw_populate_constant_data(brw, fp, brw->wm.base.prog_data, &buf[offset], + brw_populate_constant_data(brw, fp, &brw->wm.base, &buf[offset], brw->wm.base.prog_data->param, brw->wm.base.prog_data->nr_params); } @@ -268,7 +268,7 @@ brw_upload_constant_buffer(struct brw_context *brw) GLuint offset = brw->curbe.vs_start * 16; /* BRW_NEW_VS_PROG_DATA | _NEW_PROGRAM_CONSTANTS: copy uniform values */ - brw_populate_constant_data(brw, vp, brw->vs.base.prog_data, &buf[offset], + brw_populate_constant_data(brw, vp, &brw->vs.base, &buf[offset], brw->vs.base.prog_data->param, brw->vs.base.prog_data->nr_params); } |