[Mesa-dev] [PATCH 3/3] radeonsi/gfx9: implement primitive binning
Marek Olšák
maraeo at gmail.com
Mon Sep 4 18:04:57 UTC 2017
I actually made a mistake while porting the code. All UINT_MAX
occurences should stay, and UINT_MAX should be the terminator, so I'm
adding this:
diff --git a/src/gallium/drivers/radeonsi/si_state_binning.c
b/src/gallium/drivers/radeonsi/si_state_binning.c
index 56bcdc8..d75e86e 100644
--- a/src/gallium/drivers/radeonsi/si_state_binning.c
+++ b/src/gallium/drivers/radeonsi/si_state_binning.c
@@ -55,7 +55,7 @@ static struct uvec2 si_find_bin_size(struct
si_screen *sscreen,
const struct si_bin_size_map *subtable =
&table[log_num_rb_per_se][log_num_se][0];
- for (i = 0; subtable[i].bin_size_x != 0; i++) {
+ for (i = 0; subtable[i].start != UINT_MAX; i++) {
if (sum >= subtable[i].start && sum < subtable[i + 1].start)
break;
}
Marek
More information about the mesa-dev
mailing list