r300: cycles estimate for shader-db
authorPavel Ondračka <pavel.ondracka@gmail.com>
Fri, 14 Jul 2023 08:05:35 +0000 (10:05 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 06:37:10 +0000 (06:37 +0000)
commit34a12a27277c6fb84970aca34abee6a7d3ba54d3
tree92e003414d4dced9e5a6b4c2ab88798129763be1
parent219dc0fc0886fcd7f50c5945986c892261db5c51
r300: cycles estimate for shader-db

To account for:
- macro MAD in vs
- NOPs needed before presubtract
- texture scheduling and a proper texture semaphore usage

The docs don't mention any other references to extra cycles, so otherwise
we assume 1 instruction = 1 cycle.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7573
Reviewed-by: Filip Gawin <filip.gawin@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24152>
src/gallium/drivers/r300/compiler/radeon_compiler.c
src/gallium/drivers/r300/compiler/radeon_compiler.h