Marek Olšák
b257956021
ac: treat Mullins as Kabini, remove the enum
...
it's the same design
2019-05-27 15:10:51 -04:00
Marek Olšák
894e017c9c
r600+radeonsi: use ctx_query_reset_status on radeon
...
This allows a nice cleanup, because the winsys always handles it.
2019-05-16 13:15:36 -04:00
Marek Olšák
b19884e08e
winsys/amdgpu: add a parallel compute IB coupled with a gfx IB
...
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2019-05-16 13:07:00 -04:00
Marek Olšák
ccfcb9d818
ac: rename SI-CIK-VI to GFX6-GFX7-GFX8
...
Acked-by: Dave Airlie <airlied@redhat.com>
We already use GFX9 and I don't want us to have confusing naming
in the driver. GFXn naming is better from the driver perspective,
because it's the real version of the gfx portion of the hw. Also,
CIK means Bonaire-Kaveri-Kabini, it doesn't mean CI.
It shouldn't confuse our SDMA, UVD, VCE etc. code much. Those have
nothing to do with GFXn and they have their own version numbers.
2019-05-15 20:54:10 -04:00
Marek Olšák
bfb9287599
ac: add radeon_info::is_pro_graphics
...
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2019-04-23 11:28:56 -04:00
Marek Olšák
64d6cc982d
ac: add radeon_info::marketing_name, replacing the winsys callback
...
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2019-04-23 11:28:56 -04:00
Bas Nieuwenhuizen
af9534b9f3
ac: Move has_local_buffers disable to radeonsi.
...
In radv we had a separate flag to actually use it + an env option
to experimentally use it.
The common code setting has_local_buffers to false of course broke
that experimental option.
Also the "enable on APU" did not make sense for RADV as it is still
disabled by default.
Fixes: b21a4efb55 "radv/winsys: allow local BOs on APUs"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2019-04-15 20:39:28 +02:00
Marek Olšák
b563460b49
radeonsi: enable displayable DCC on Ravens
2019-04-04 09:53:24 -04:00
Marek Olšák
1f21396431
radeonsi: add support for displayable DCC for multi-RB chips
...
A compute shader is used to reorder DCC data from aligned to unaligned.
2019-04-04 09:53:24 -04:00
Marek Olšák
2c09eb4122
radeonsi: add support for displayable DCC for 1 RB chips
...
This is the simpler codepath - just disable RB and pipe alignment for DCC.
2019-04-04 09:53:24 -04:00
Marek Olšák
11735d6c9c
winsys/amdgpu: fix whitespace
2019-01-15 19:10:16 -05:00
Marek Olšák
26cb93e229
radeonsi: add support for Raven2 (v2)
...
v2: fix enabling primitive binning
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2018-10-30 16:03:02 -04:00
Leo Liu
b75fb8ee36
amd/common: check DRM version 3.27 for JPEG decode
...
JPEG was added after DRM version 3.26
Signed-off-by: Leo Liu <leo.liu@amd.com>
Fixes: 4558758c51749(amd/common: add vcn jpeg ip info query)
Cc: Boyuan Zhang <boyuan.zhang@amd.com>
Cc: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2018-10-23 13:12:05 -04:00
Boyuan Zhang
4558758c51
amd/common: add vcn jpeg ip info query
...
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
2018-10-23 08:50:02 -04:00
Marek Olšák
fedc1fda30
radeonsi: save raster config in screen, add se_tile_repeat
2018-10-16 15:28:22 -04:00
Marek Olšák
b00deed66f
radeonsi: adjust and simplify max_alloc_size determination
...
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
2018-09-10 15:19:56 -04:00
Marek Olšák
bc09c3d59e
ac: add radeon_info::num_good_cu_per_sh
...
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
2018-09-10 15:19:56 -04:00
Marek Olšák
84652721b9
ac: add radeon_info::name
...
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2018-08-14 21:20:31 -04:00
Marek Olšák
a2451a4c23
ac/gpu_info: add radeon_info::num_tcc_blocks
...
The values for the radeon winsys were copied from the kernel driver.
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
2018-06-19 12:52:28 -04:00
Bas Nieuwenhuizen
c4714f698b
ac: Clear meminfo to avoid valgrind warning.
...
Somehow valgrind misses that the value is initialized by the ioctl.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2018-06-16 19:03:47 +02:00
Marek Olšák
95ecde42eb
ac/gpu_info: report real total memory sizes
...
The change from MIN2 to MAX2 is intentional.
Cc: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
2018-06-13 21:47:36 -04:00
Marek Olšák
a2e9d9b4c1
ac/gpu_info: add has_read_registers_query
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:40:11 -04:00
Marek Olšák
9b1fdfc541
ac/gpu_info: add has_2d_tiling
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:40:10 -04:00
Marek Olšák
d26696283d
ac/gpu_info: add has_sparse_vm_mappings
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:40:08 -04:00
Marek Olšák
125adc92ad
ac/gpu_info: add has_unaligned_shader_loads
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:40:07 -04:00
Marek Olšák
e9c08bc658
ac/gpu_info: add has_indirect_compute_dispatch
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:40:03 -04:00
Marek Olšák
64265ac8d5
ac/gpu_info: add kernel_flushes_tc_l2_after_ib
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:40:01 -04:00
Marek Olšák
14c5a93bfa
ac/gpu_info: add has_format_bc1_through_bc7
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:40:00 -04:00
Marek Olšák
2bd2c173e8
ac/gpu_info: add has_eqaa_surface_allocator
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:39:58 -04:00
Marek Olšák
e720cb6135
radeonsi: clean up the reset status query implementation
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:39:57 -04:00
Marek Olšák
3060f62340
ac/gpu_info: add has_bo_metadata
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:39:56 -04:00
Marek Olšák
09f1bab483
ac/gpu_info: add si_TA_CS_BC_BASE_ADDR_allowed
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:39:54 -04:00
Marek Olšák
8b58a14ef7
ac/gpu_info: add htile_cmask_support_1d_tiling
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:39:53 -04:00
Marek Olšák
b81149e258
ac/gpu_info: add kernel_flushes_hdp_before_ib
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:39:47 -04:00
Marek Olšák
6f7f10d285
ac: sort raster configs
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:26:32 -04:00
Marek Olšák
e7b82a9978
ac: remove 1 RB raster config for Iceland
...
Iceland always reports 2 RBs.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:26:32 -04:00
Marek Olšák
cb0f5cddcc
ac: move the Fiji kernel workaround for raster config out of the switch
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:26:32 -04:00
Marek Olšák
ce954ac6f3
ac: enable both RBs on Kaveri
...
This can result in 2x increase in performance on non-harvested Kaveris.
v2: don't do it on radeon
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2018-05-10 18:26:32 -04:00
Dave Airlie
a90c9f33cf
ac/radv/radeonsi: refactor harvest config register getters.
...
This refactors the code out to share it between radv and radeonsi.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2018-04-24 09:08:34 +10:00
Dave Airlie
899df55ee0
ac/radv/radeonsi: refactor raster_config default values getters.
...
This just makes this common code between the two drivers.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
2018-04-24 09:07:51 +10:00
Dave Airlie
5e2ef28390
ac/info: move gs table depth to common code.
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
2018-04-24 09:05:38 +10:00
Marek Olšák
a3b785be4d
winsys/amdgpu: allow local BOs on APUs
...
Local BOs ignore BO priorities, and we don't need those on APUs.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
2018-04-13 12:31:04 -04:00
Marek Olšák
5d91c2ccea
ac/gpu_info: print GB_ADDR_CONFIG
2018-04-02 13:10:37 -04:00
Marek Olšák
b1f33086ec
ac/gpu_info: reorder the fields and print them nicely
2018-04-02 13:10:37 -04:00
Marek Olšák
a0a96819e1
ac/gpu_info: rename has_virtual_memory -> r600_has_virtual_memory
2018-04-02 13:10:37 -04:00
Marek Olšák
32b3932de1
ac/gpu_info: don't print irrelevant fields
2018-04-02 13:10:37 -04:00
Ian Romanick
d76c204d05
util: Move util_is_power_of_two to bitscan.h and rename to util_is_power_of_two_or_zero
...
The new name make the zero-input behavior more obvious. The next
patch adds a new function with different zero-input behavior.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Suggested-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
2018-03-29 14:09:23 -07:00
Marek Olšák
769603564e
radeonsi: don't reallocate on DMABUF export if local BOs are disabled
2018-03-26 19:22:12 -04:00
Marek Olšák
e99212e970
ac/gpu_info: print ib_start_alignment, add assertion
2018-03-09 16:28:29 -05:00
Marek Olšák
78ef16e2f9
winsys/amdgpu: query GDS info
...
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2018-03-08 14:58:16 -05:00