mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 12:28:07 +02:00
freedreno/devices: Add num_slices
Add num_slices param to the device info. This will be needed for calculating LRZ layout. Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38930>
This commit is contained in:
parent
57c93d31f2
commit
17b567485a
2 changed files with 7 additions and 1 deletions
|
|
@ -69,6 +69,8 @@ struct fd_dev_info {
|
|||
uint32_t num_ccu;
|
||||
};
|
||||
|
||||
uint32_t num_slices; /* gen8+ */
|
||||
|
||||
struct {
|
||||
uint32_t RB_DBG_ECO_CNTL;
|
||||
uint32_t RB_DBG_ECO_CNTL_blit;
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ class A6xxGPUInfo(GPUInfo):
|
|||
cs_shared_mem_size, wave_granularity, fibers_per_sp,
|
||||
magic_regs, raw_magic_regs = None, highest_bank_bit = 15,
|
||||
ubwc_swizzle = 0x6, macrotile_mode = 1,
|
||||
threadsize_base = 64, max_waves = 16):
|
||||
threadsize_base = 64, max_waves = 16, num_slices = 0):
|
||||
if chip == CHIP.A6XX:
|
||||
compute_lb_size = 0
|
||||
else:
|
||||
|
|
@ -163,6 +163,7 @@ class A6xxGPUInfo(GPUInfo):
|
|||
compute_lb_size = compute_lb_size)
|
||||
|
||||
self.num_ccu = num_ccu
|
||||
self.num_slices = num_slices
|
||||
|
||||
self.props = Struct()
|
||||
|
||||
|
|
@ -1460,6 +1461,7 @@ add_gpus([
|
|||
CHIP.A8XX,
|
||||
[a7xx_base, a7xx_gen3, a8xx_base],
|
||||
num_ccu = 6,
|
||||
num_slices = 3,
|
||||
tile_align_w = 64,
|
||||
tile_align_h = 32,
|
||||
tile_max_w = 16384,
|
||||
|
|
@ -1514,6 +1516,7 @@ add_gpus([
|
|||
CHIP.A8XX,
|
||||
[a7xx_base, a7xx_gen3, a8xx_base, a8xx_gen2],
|
||||
num_ccu = 6,
|
||||
num_slices = 3,
|
||||
tile_align_w = 96,
|
||||
tile_align_h = 32,
|
||||
tile_max_w = 16416,
|
||||
|
|
@ -1532,6 +1535,7 @@ add_gpus([
|
|||
CHIP.A8XX,
|
||||
[a7xx_base, a7xx_gen3, a8xx_base, a8xx_gen2],
|
||||
num_ccu = 8,
|
||||
num_slices = 4,
|
||||
tile_align_w = 64,
|
||||
tile_align_h = 64,
|
||||
tile_max_w = 16384,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue