mesa/src/util/shader_stats.rnc
Alyssa Rosenzweig b575b0954a util/shader_stats: allow "hidden" stats
to allow drivers to do more complex printing without needing a subclass
paradigm. To be used on Intel.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37517>
2025-10-02 20:22:00 +00:00

27 lines
683 B
Text

# Copyright 2025 Valve Corporation
# SPDX-License-Identifier: MIT
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
start = element shaderdb { (isa | family)* }
family = element family {
attribute name { text },
isa+
}
isa = element isa {
attribute name { text },
element stat {
attribute name { text },
attribute display { text }?,
attribute count { xsd:integer }?,
attribute more { "better" | "worse" }?,
attribute hash { xsd:boolean }?,
attribute hidden { xsd:boolean }?,
[ a:defaultValue = "u32" ] attribute type
{ "u8" | "i8" | "u16" | "i16" | "u32" | "i32" | "u64" | "i64" | "float" | "bool" }?,
text
}+
}