diff options
author | Marek Olšák <[email protected]> | 2017-02-01 02:16:46 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-30 14:44:33 +0200 |
commit | 31b10422760bf743268d8a90fda406eac4069540 (patch) | |
tree | 97e80d9d580da09389a7b7d8ddb3ce4272606db9 /src/gallium/drivers/radeonsi/si_state.c | |
parent | 5f4659260ec4bc49d951aa93da2945c1fbde9e2e (diff) |
radeonsi/gfx9: set NUM_RECORDS correctly
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index affd7875d56..ae5aac0e465 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2764,7 +2764,7 @@ si_make_buffer_descriptor(struct si_screen *screen, struct r600_resource *buf, num_records = size / stride; num_records = MIN2(num_records, (buf->b.b.width0 - offset) / stride); - if (screen->b.chip_class >= VI) + if (screen->b.chip_class == VI) num_records *= stride; state[4] = 0; |