[Mesa-dev] [PATCH] radv: make use of num_good_cu_per_sh in si_emit_graphics() too
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Mon Nov 12 08:27:12 UTC 2018
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Thu, Nov 8, 2018 at 2:46 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/si_cmd_buffer.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
> index 7a0f4e914d..a9f2572541 100644
> --- a/src/amd/vulkan/si_cmd_buffer.c
> +++ b/src/amd/vulkan/si_cmd_buffer.c
> @@ -278,8 +278,7 @@ si_emit_graphics(struct radv_physical_device *physical_device,
> radeon_set_sh_reg(cs, R_00B21C_SPI_SHADER_PGM_RSRC3_GS,
> S_00B21C_CU_EN(0xffff) | S_00B21C_WAVE_LIMIT(0x3F));
>
> - if (physical_device->rad_info.num_good_compute_units /
> - (physical_device->rad_info.max_se * physical_device->rad_info.max_sh_per_se) <= 4) {
> + if (physical_device->rad_info.num_good_cu_per_sh <= 4) {
> /* Too few available compute units per SH. Disallowing
> * VS to run on CU0 could hurt us more than late VS
> * allocation would help.
> --
> 2.19.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list