From: Kevin Rogovin <kevin.rogo...@intel.com> Signed-off-by: Kevin Rogovin <kevin.rogo...@intel.com> --- src/mesa/drivers/dri/i965/brw_program.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 6aa4100..1ae0aa0 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -368,9 +368,13 @@ brw_alloc_stage_scratch(struct brw_context *brw, * * According to the other driver team, this applies to compute shaders * as well. This is not currently documented at all. + * + * brw->screen->subslice_total is the TOTAL number of subslices + * and we wish to view that there are 4 subslices per slice + * instead of the actual number of subslices per slice. */ if (devinfo->gen >= 9) - subslices = 4; + subslices = 4 * brw->screen->devinfo.num_slices; /* WaCSScratchSize:hsw * -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev