summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_transfer.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-03-05 13:45:00 +0100
committerMarek Olšák <[email protected]>2012-03-05 13:47:49 +0100
commit62f44f670bb0162e89fd4786af877f8da9ff607c (patch)
tree4c6e6a1743a19d17f5667c1a3a290802c2637298 /src/gallium/drivers/nvfx/nvfx_transfer.c
parent058fc6521e3bc483bc948cc90dc5ee3b08d6ec64 (diff)
Revert "gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY"
This reverts commit 0950086376b1c8b7fb89eda81ed7f2f06dee58bc. It was decided to refactor the transfer API instead of adding workarounds to address the performance issues.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_transfer.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_transfer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_transfer.c b/src/gallium/drivers/nvfx/nvfx_transfer.c
index 605af8efa8e..7a218b18c64 100644
--- a/src/gallium/drivers/nvfx/nvfx_transfer.c
+++ b/src/gallium/drivers/nvfx/nvfx_transfer.c
@@ -26,9 +26,6 @@ nvfx_transfer_new(struct pipe_context *pipe,
unsigned usage,
const struct pipe_box *box)
{
- if (usage & PIPE_TRANSFER_MAP_PERMANENTLY) {
- return NULL;
- }
if((usage & (PIPE_TRANSFER_UNSYNCHRONIZED | PIPE_TRANSFER_DONTBLOCK)) == PIPE_TRANSFER_DONTBLOCK)
{
struct nouveau_bo* bo = ((struct nvfx_resource*)pt)->bo;