Mesa (master): r300g: report that transfers are always supported

Marek Olšák mareko at kemper.freedesktop.org
Tue Jun 8 15:26:48 PDT 2010


Module: Mesa
Branch: master
Commit: 89dc925150a6e180c80f75a84196008dc954ae99
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=89dc925150a6e180c80f75a84196008dc954ae99

Author: Marek Olšák <maraeo at gmail.com>
Date:   Wed Jun  9 00:26:28 2010 +0200

r300g: report that transfers are always supported

---

 src/gallium/drivers/r300/r300_screen.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index 497e24b..f0c562b 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -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;
 }
 



More information about the mesa-commit mailing list