diff options
author | Kenneth Graunke <[email protected]> | 2014-09-02 11:38:29 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-09-03 17:11:33 -0700 |
commit | f92fbd554f2e9e702a2bd650c9b2571a3f4f1ab8 (patch) | |
tree | b6e24c2b40ae16c6c4f636f93b881d4c5e4815dc /src/mesa/drivers/dri/i965/brw_wm.c | |
parent | 7528f6fd178ef10b7fde8e66c57bec38127471fd (diff) |
i965: Move curb_read_length/total_scratch to brw_stage_prog_data.
All shader stages have these fields, so it makes sense to store them in
the common base structure, rather than duplicating them in each.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c index 2e3cd4bb2cc..6834534c54a 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.c +++ b/src/mesa/drivers/dri/i965/brw_wm.c @@ -187,9 +187,9 @@ bool do_wm_prog(struct brw_context *brw, return false; } - if (prog_data.total_scratch) { + if (prog_data.base.total_scratch) { brw_get_scratch_bo(brw, &brw->wm.base.scratch_bo, - prog_data.total_scratch * brw->max_wm_threads); + prog_data.base.total_scratch * brw->max_wm_threads); } if (unlikely(INTEL_DEBUG & DEBUG_WM)) |