Module: Mesa
Branch: refs/tags/good-3
Commit: 7cec56ae838f29156f1d3931792d69ec679a7264
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7cec56ae838f29156f1d3931792d69ec679a7264

Author: Emil Velikov <[email protected]>
Date:   Thu Jun 13 01:28:53 2013 +0100

nouveau: use BO_VRAM on USAGE_DYNAMIC

Signed-off-by: Emil Velikov <[email protected]>

---

 src/gallium/drivers/nouveau/nouveau_buffer.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c 
b/src/gallium/drivers/nouveau/nouveau_buffer.c
index 8502269..0741b9b 100644
--- a/src/gallium/drivers/nouveau/nouveau_buffer.c
+++ b/src/gallium/drivers/nouveau/nouveau_buffer.c
@@ -435,6 +435,11 @@ nouveau_buffer_create(struct pipe_screen *pscreen,
          buffer->domain = NOUVEAU_BO_VRAM;
          break;
       case PIPE_USAGE_DYNAMIC:
+         /* For most apps, we'd have to do staging transfers to avoid sync
+          * with this usage, and GART -> GART copies would be suboptimal.
+          */
+         buffer->domain = NOUVEAU_BO_VRAM;
+         break;
       case PIPE_USAGE_STAGING:
       case PIPE_USAGE_STREAM:
          buffer->domain = NOUVEAU_BO_GART;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to