r300g: report that transfers are always supported
authorMarek Olšák <maraeo@gmail.com>
Tue, 8 Jun 2010 22:26:28 +0000 (00:26 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 8 Jun 2010 22:26:28 +0000 (00:26 +0200)
src/gallium/drivers/r300/r300_screen.c

index 497e24b7605bd9427447467283002b61adafb591..f0c562b76b33477d7ed607e97a697eaa91520f8f 100644 (file)
@@ -319,6 +319,12 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
         retval |= PIPE_BIND_VERTEX_BUFFER;
     }
 
+    /* Transfers are always supported. */
+    if (usage & PIPE_BIND_TRANSFER_READ)
+        retval |= PIPE_BIND_TRANSFER_READ;
+    if (usage & PIPE_BIND_TRANSFER_WRITE)
+        retval |= PIPE_BIND_TRANSFER_WRITE;
+
     return retval == usage;
 }