Using consistent naming allows us to create macros more easily.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
GEN7_FEATURES, .is_ivybridge = true, .gt = 1,
.num_slices = 1,
.max_vs_threads = 36,
- .max_hs_threads = 36,
+ .max_tcs_threads = 36,
.max_ds_threads = 36,
.max_gs_threads = 36,
.max_wm_threads = 48,
.size = 128,
.min_vs_entries = 32,
.max_vs_entries = 512,
- .max_hs_entries = 32,
+ .max_tcs_entries = 32,
.min_ds_entries = 10,
.max_ds_entries = 288,
.max_gs_entries = 192,
GEN7_FEATURES, .is_ivybridge = true, .gt = 2,
.num_slices = 1,
.max_vs_threads = 128,
- .max_hs_threads = 128,
+ .max_tcs_threads = 128,
.max_ds_threads = 128,
.max_gs_threads = 128,
.max_wm_threads = 172,
.size = 256,
.min_vs_entries = 32,
.max_vs_entries = 704,
- .max_hs_entries = 64,
+ .max_tcs_entries = 64,
.min_ds_entries = 10,
.max_ds_entries = 448,
.max_gs_entries = 320,
.num_slices = 1,
.has_llc = false,
.max_vs_threads = 36,
- .max_hs_threads = 36,
+ .max_tcs_threads = 36,
.max_ds_threads = 36,
.max_gs_threads = 36,
.max_wm_threads = 48,
.size = 128,
.min_vs_entries = 32,
.max_vs_entries = 512,
- .max_hs_entries = 32,
+ .max_tcs_entries = 32,
.min_ds_entries = 10,
.max_ds_entries = 288,
.max_gs_entries = 192,
HSW_FEATURES, .gt = 1,
.num_slices = 1,
.max_vs_threads = 70,
- .max_hs_threads = 70,
+ .max_tcs_threads = 70,
.max_ds_threads = 70,
.max_gs_threads = 70,
.max_wm_threads = 102,
.size = 128,
.min_vs_entries = 32,
.max_vs_entries = 640,
- .max_hs_entries = 64,
+ .max_tcs_entries = 64,
.min_ds_entries = 10,
.max_ds_entries = 384,
.max_gs_entries = 256,
HSW_FEATURES, .gt = 2,
.num_slices = 1,
.max_vs_threads = 280,
- .max_hs_threads = 256,
+ .max_tcs_threads = 256,
.max_ds_threads = 280,
.max_gs_threads = 256,
.max_wm_threads = 204,
.size = 256,
.min_vs_entries = 64,
.max_vs_entries = 1664,
- .max_hs_entries = 128,
+ .max_tcs_entries = 128,
.min_ds_entries = 10,
.max_ds_entries = 960,
.max_gs_entries = 640,
HSW_FEATURES, .gt = 3,
.num_slices = 2,
.max_vs_threads = 280,
- .max_hs_threads = 256,
+ .max_tcs_threads = 256,
.max_ds_threads = 280,
.max_gs_threads = 256,
.max_wm_threads = 408,
.size = 512,
.min_vs_entries = 64,
.max_vs_entries = 1664,
- .max_hs_entries = 128,
+ .max_tcs_entries = 128,
.min_ds_entries = 10,
.max_ds_entries = 960,
.max_gs_entries = 640,
.supports_simd16_3src = true, \
.has_surface_tile_offset = true, \
.max_vs_threads = 504, \
- .max_hs_threads = 504, \
+ .max_tcs_threads = 504, \
.max_ds_threads = 504, \
.max_gs_threads = 504, \
.max_wm_threads = 384
.size = 192,
.min_vs_entries = 64,
.max_vs_entries = 2560,
- .max_hs_entries = 504,
+ .max_tcs_entries = 504,
.min_ds_entries = 34,
.max_ds_entries = 1536,
.max_gs_entries = 960,
.size = 384,
.min_vs_entries = 64,
.max_vs_entries = 2560,
- .max_hs_entries = 504,
+ .max_tcs_entries = 504,
.min_ds_entries = 34,
.max_ds_entries = 1536,
.max_gs_entries = 960,
.size = 384,
.min_vs_entries = 64,
.max_vs_entries = 2560,
- .max_hs_entries = 504,
+ .max_tcs_entries = 504,
.min_ds_entries = 34,
.max_ds_entries = 1536,
.max_gs_entries = 960,
.has_llc = false,
.num_slices = 1,
.max_vs_threads = 80,
- .max_hs_threads = 80,
+ .max_tcs_threads = 80,
.max_ds_threads = 80,
.max_gs_threads = 80,
.max_wm_threads = 128,
.size = 192,
.min_vs_entries = 34,
.max_vs_entries = 640,
- .max_hs_entries = 80,
+ .max_tcs_entries = 80,
.min_ds_entries = 34,
.max_ds_entries = 384,
.max_gs_entries = 256,
.has_surface_tile_offset = true, \
.max_vs_threads = 336, \
.max_gs_threads = 336, \
- .max_hs_threads = 336, \
+ .max_tcs_threads = 336, \
.max_ds_threads = 336, \
.max_wm_threads = 64 * 9, \
.max_cs_threads = 56, \
.size = 384, \
.min_vs_entries = 64, \
.max_vs_entries = 1856, \
- .max_hs_entries = 672, \
+ .max_tcs_entries = 672, \
.min_ds_entries = 34, \
.max_ds_entries = 1120, \
.max_gs_entries = 640, \
.num_slices = 1,
.max_vs_threads = 112,
- .max_hs_threads = 112,
+ .max_tcs_threads = 112,
.max_ds_threads = 112,
.max_gs_threads = 112,
.max_wm_threads = 64 * 3,
.size = 192,
.min_vs_entries = 34,
.max_vs_entries = 704,
- .max_hs_entries = 256,
+ .max_tcs_entries = 256,
.max_ds_entries = 416,
.max_gs_entries = 256,
}
.num_slices = 1,
.max_vs_threads = 56, /* XXX: guess */
- .max_hs_threads = 56, /* XXX: guess */
+ .max_tcs_threads = 56, /* XXX: guess */
.max_ds_threads = 56,
.max_gs_threads = 56,
.max_wm_threads = 64 * 2,
.size = 128,
.min_vs_entries = 34,
.max_vs_entries = 352,
- .max_hs_entries = 128,
+ .max_tcs_entries = 128,
.max_ds_entries = 208,
.max_gs_entries = 128,
}
*/
unsigned num_slices;
unsigned max_vs_threads; /**< Maximum Vertex Shader threads */
- unsigned max_hs_threads; /**< Maximum Hull Shader threads */
+ unsigned max_tcs_threads; /**< Maximum Hull Shader threads */
unsigned max_ds_threads; /**< Maximum Domain Shader threads */
unsigned max_gs_threads; /**< Maximum Geometry Shader threads. */
/**
unsigned size;
unsigned min_vs_entries;
unsigned max_vs_entries;
- unsigned max_hs_entries;
+ unsigned max_tcs_entries;
unsigned min_ds_entries;
unsigned max_ds_entries;
unsigned max_gs_entries;
uint32_t max_threads[] = {
[MESA_SHADER_VERTEX] = devinfo->max_vs_threads,
- [MESA_SHADER_TESS_CTRL] = devinfo->max_hs_threads,
+ [MESA_SHADER_TESS_CTRL] = devinfo->max_tcs_threads,
[MESA_SHADER_TESS_EVAL] = devinfo->max_ds_threads,
[MESA_SHADER_GEOMETRY] = devinfo->max_gs_threads,
[MESA_SHADER_FRAGMENT] = devinfo->max_wm_threads,
/* Scratch space is used for register spilling */
brw_alloc_stage_scratch(brw, stage_state,
prog_data.base.base.total_scratch,
- devinfo->max_hs_threads);
+ devinfo->max_tcs_threads);
brw_upload_cache(&brw->cache, BRW_CACHE_TCS_PROG,
key, sizeof(*key),
GEN7_HS_SAMPLER_COUNT) |
SET_FIELD(prog_data->base.binding_table.size_bytes / 4,
GEN7_HS_BINDING_TABLE_ENTRY_COUNT) |
- (devinfo->max_hs_threads - 1));
+ (devinfo->max_tcs_threads - 1));
OUT_BATCH(GEN7_HS_ENABLE |
GEN7_HS_STATISTICS_ENABLE |
SET_FIELD(brw->tcs.prog_data->instances - 1,
DIV_ROUND_UP(hs_granularity * hs_entry_size_bytes,
chunk_size_bytes);
hs_wants =
- DIV_ROUND_UP(devinfo->urb.max_hs_entries * hs_entry_size_bytes,
+ DIV_ROUND_UP(devinfo->urb.max_tcs_entries * hs_entry_size_bytes,
chunk_size_bytes) - hs_chunks;
ds_chunks =
* than the maximum allowed amount, so correct for that.
*/
nr_vs_entries = MIN2(nr_vs_entries, devinfo->urb.max_vs_entries);
- nr_hs_entries = MIN2(nr_hs_entries, devinfo->urb.max_hs_entries);
+ nr_hs_entries = MIN2(nr_hs_entries, devinfo->urb.max_tcs_entries);
nr_ds_entries = MIN2(nr_ds_entries, devinfo->urb.max_ds_entries);
nr_gs_entries = MIN2(nr_gs_entries, devinfo->urb.max_gs_entries);
GEN7_HS_BINDING_TABLE_ENTRY_COUNT));
OUT_BATCH(GEN7_HS_ENABLE |
GEN7_HS_STATISTICS_ENABLE |
- (devinfo->max_hs_threads - 1) << GEN8_HS_MAX_THREADS_SHIFT |
+ (devinfo->max_tcs_threads - 1) << GEN8_HS_MAX_THREADS_SHIFT |
SET_FIELD(brw->tcs.prog_data->instances - 1,
GEN7_HS_INSTANCE_COUNT));
OUT_BATCH(stage_state->prog_offset);