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 <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -574,7 +574,6 @@ struct brw_stage_prog_data {
|
||||
|
||||
GLuint nr_params; /**< number of float params/constants */
|
||||
GLuint nr_pull_params;
|
||||
unsigned nr_image_params;
|
||||
|
||||
unsigned curb_read_length;
|
||||
unsigned total_scratch;
|
||||
@@ -596,9 +595,6 @@ struct brw_stage_prog_data {
|
||||
*/
|
||||
uint32_t *param;
|
||||
uint32_t *pull_param;
|
||||
|
||||
/** Image metadata passed to the shader as uniforms. */
|
||||
struct brw_image_param *image_param;
|
||||
};
|
||||
|
||||
static inline void
|
||||
|
Reference in New Issue
Block a user