freedreno: Introduce ray tracing features

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28447>
This commit is contained in:
Connor Abbott
2024-05-09 06:32:05 -04:00
committed by Marge Bot
parent cdb1857a4d
commit 18550fb41b
2 changed files with 11 additions and 0 deletions
@@ -330,6 +330,14 @@ struct fd_dev_info {
* This workaround was seen in the prop driver v512.762.12.
*/
bool reading_shading_rate_requires_smask_quirk;
/* Whether the ray_intersection instruction is present. */
bool has_ray_intersection;
/* Whether features may be fused off by the SW_FUSE. So far, this is
* just raytracing.
*/
bool has_sw_fuse;
} a7xx;
};
@@ -887,6 +887,7 @@ a7xx_gen2 = A7XXProps(
has_64b_ssbo_atomics = True,
has_primitive_shading_rate = True,
reading_shading_rate_requires_smask_quirk = True,
has_ray_intersection = True,
)
a7xx_gen3 = A7XXProps(
@@ -908,6 +909,8 @@ a7xx_gen3 = A7XXProps(
has_persistent_counter = True,
has_64b_ssbo_atomics = True,
has_primitive_shading_rate = True,
has_ray_intersection = True,
has_sw_fuse = True,
)
a730_magic_regs = dict(