rsx: Fix dynamic constants patching when draw call is skipped

- Also adds an optimization to skip reuploads when patch occurs outside our critical range.
This commit is contained in:
kd-11 2025-01-11 21:02:13 +03:00 committed by kd-11
parent 7965a0313c
commit e1c6df0df3
5 changed files with 49 additions and 7 deletions

View file

@ -67,6 +67,9 @@ namespace rsx
// Translates an incoming range of constants against our mapping.
// If there is no linear mapping available, return -1, otherwise returns the translated index of the first slot
// TODO: Move this somewhere else during refactor
int TranslateConstantsRange(int first_index, int count) const;
int translate_constants_range(int first_index, int count) const;
// Returns true if this program consumes any constants in the range [first, first + count - 1]
bool overlaps_constants_range(int first_index, int count) const;
};
}