diff options
author | Marek Olšák <[email protected]> | 2014-02-04 18:35:40 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-02-06 17:29:59 +0100 |
commit | 2be5bbdd97e1f830d265042d3f1cdce1a201ea33 (patch) | |
tree | 2838f30f0fadcdadd64ae0d0044437934266e294 /src/gallium/drivers/radeonsi | |
parent | c6dbcf10dff1f8343a26081f5489ef732ebb5460 (diff) |
r600g,radeonsi: set resource domains in one place (v2)
v2: This doesn't change the behavior. It only moves the tiling check
to r600_init_resource and removes the usage parameter.
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 9078c6c7f3e..f717371bb2a 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -706,8 +706,8 @@ static void si_invalidate_buffer(struct pipe_context *ctx, struct pipe_resource pb_reference(&rbuffer->buf, NULL); /* Create a new one in the same pipe_resource. */ - r600_init_resource(&sctx->screen->b, rbuffer, rbuffer->b.b.width0, alignment, - TRUE, rbuffer->b.b.usage); + r600_init_resource(&sctx->screen->b, rbuffer, rbuffer->b.b.width0, + alignment, TRUE); /* We changed the buffer, now we need to bind it where the old one * was bound. This consists of 2 things: |