summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-01-31 07:44:22 +0100
committerMarek Olšák <[email protected]>2012-01-31 23:28:50 +0100
commit267bddaacb4b237b8fa6ab055eb75485efad7b3c (patch)
tree61ad8562630f4fcb4ee3e7390acdaa6657531f73 /src/gallium/drivers/r300
parent38bf2763482b4f1b6d95cd51aecec75601d8b90f (diff)
r300g: don't use pipe_context::winsys
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_transfer.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/drivers/r300/r300_transfer.c b/src/gallium/drivers/r300/r300_transfer.c
index 91e861a4a73..10ff2b019f0 100644
--- a/src/gallium/drivers/r300/r300_transfer.c
+++ b/src/gallium/drivers/r300/r300_transfer.c
@@ -231,7 +231,6 @@ void* r300_texture_transfer_map(struct pipe_context *ctx,
struct pipe_transfer *transfer)
{
struct r300_context *r300 = r300_context(ctx);
- struct radeon_winsys *rws = (struct radeon_winsys *)ctx->winsys;
struct r300_transfer *r300transfer = r300_transfer(transfer);
struct r300_resource *tex = r300_resource(transfer->resource);
char *map;
@@ -240,13 +239,11 @@ void* r300_texture_transfer_map(struct pipe_context *ctx,
if (r300transfer->linear_texture) {
/* The detiled texture is of the same size as the region being mapped
* (no offset needed). */
- return rws->buffer_map(r300transfer->linear_texture->buf,
- r300->cs,
- transfer->usage);
+ return r300->rws->buffer_map(r300transfer->linear_texture->buf,
+ r300->cs, transfer->usage);
} else {
/* Tiling is disabled. */
- map = rws->buffer_map(tex->buf, r300->cs,
- transfer->usage);
+ map = r300->rws->buffer_map(tex->buf, r300->cs, transfer->usage);
if (!map) {
return NULL;