summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-10-17 17:01:37 +0200
committerMarek Olšák <[email protected]>2012-10-18 22:54:53 +0200
commite5a9bf55231aa14f6ae831a5c47d7176cb6c230b (patch)
tree8be068132ad146182648292903a048ee5d2b048c /src/gallium
parent0da72d3502ecc48e9189ebc4cbea446f79ccb61d (diff)
gallium: remove unused data pointer from pipe_transfer
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i915/i915_resource_texture.c1
-rw-r--r--src/gallium/drivers/r300/r300_screen_buffer.c1
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c1
-rw-r--r--src/gallium/drivers/r600/r600_buffer.c1
-rw-r--r--src/gallium/drivers/radeonsi/r600_buffer.c1
-rw-r--r--src/gallium/include/pipe/p_state.h1
6 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c
index 52ef776b3ce..76b232fd3e1 100644
--- a/src/gallium/drivers/i915/i915_resource_texture.c
+++ b/src/gallium/drivers/i915/i915_resource_texture.c
@@ -733,7 +733,6 @@ i915_texture_transfer_map(struct pipe_context *pipe,
transfer->staging_texture = NULL;
/* XXX: handle depth textures everyhwere*/
transfer->b.layer_stride = 0;
- transfer->b.data = NULL;
/* if we use staging transfers, only support textures we can render to,
* because we need that for u_blitter */
diff --git a/src/gallium/drivers/r300/r300_screen_buffer.c b/src/gallium/drivers/r300/r300_screen_buffer.c
index 37a7c77010a..652d757db5d 100644
--- a/src/gallium/drivers/r300/r300_screen_buffer.c
+++ b/src/gallium/drivers/r300/r300_screen_buffer.c
@@ -84,7 +84,6 @@ r300_buffer_transfer_map( struct pipe_context *context,
transfer->box = *box;
transfer->stride = 0;
transfer->layer_stride = 0;
- transfer->data = NULL;
if (rbuf->malloced_buffer) {
*ptransfer = transfer;
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
index 55715949646..25263f3b013 100644
--- a/src/gallium/drivers/r600/evergreen_compute.c
+++ b/src/gallium/drivers/r600/evergreen_compute.c
@@ -870,7 +870,6 @@ void *r600_compute_global_transfer_map(
transfer->box = *box;
transfer->stride = 0;
transfer->layer_stride = 0;
- transfer->data = NULL;
assert(transfer->resource->target == PIPE_BUFFER);
assert(transfer->resource->bind & PIPE_BIND_GLOBAL);
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index 90ab2475d75..f4566eeb9aa 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -77,7 +77,6 @@ static void *r600_buffer_get_transfer(struct pipe_context *ctx,
transfer->transfer.box = *box;
transfer->transfer.stride = 0;
transfer->transfer.layer_stride = 0;
- transfer->transfer.data = NULL;
transfer->staging = NULL;
transfer->offset = 0;
transfer->staging = staging;
diff --git a/src/gallium/drivers/radeonsi/r600_buffer.c b/src/gallium/drivers/radeonsi/r600_buffer.c
index 2e65d28f293..66bb4d5d914 100644
--- a/src/gallium/drivers/radeonsi/r600_buffer.c
+++ b/src/gallium/drivers/radeonsi/r600_buffer.c
@@ -69,7 +69,6 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx,
transfer->box = *box;
transfer->stride = 0;
transfer->layer_stride = 0;
- transfer->data = NULL;
*ptransfer = transfer;
return (uint8_t*)data + transfer->box.x;
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index e88242dd769..6d0db0f86f8 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -429,7 +429,6 @@ struct pipe_transfer
struct pipe_box box; /**< region of the resource to access */
unsigned stride; /**< row stride in bytes */
unsigned layer_stride; /**< image/layer stride in bytes */
- void *data;
};