projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9d2ef7
)
r600g: remove set-but-unused variable
author
Marek Olšák
<maraeo@gmail.com>
Sun, 1 May 2011 11:25:52 +0000
(13:25 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Sun, 1 May 2011 11:25:52 +0000
(13:25 +0200)
src/gallium/drivers/r600/r600_buffer.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_buffer.c
b/src/gallium/drivers/r600/r600_buffer.c
index 9f545f14699e938032015ba89cf01ff3c0342ebd..72f352df3c34f82f6b11cecc5c1bd93c82d22df3 100644
(file)
--- a/
src/gallium/drivers/r600/r600_buffer.c
+++ b/
src/gallium/drivers/r600/r600_buffer.c
@@
-81,15
+81,11
@@
static void *r600_buffer_transfer_map(struct pipe_context *pipe,
struct pipe_transfer *transfer)
{
struct r600_resource_buffer *rbuffer = r600_buffer(transfer->resource);
- int write = 0;
uint8_t *data;
if (rbuffer->r.b.user_ptr)
return (uint8_t*)rbuffer->r.b.user_ptr + transfer->box.x;
- if (transfer->usage & PIPE_TRANSFER_WRITE) {
- write = 1;
- }
data = r600_bo_map((struct radeon*)pipe->winsys, rbuffer->r.bo, transfer->usage, pipe);
if (!data)
return NULL;