Mesa (master): svga: SVGA_3D_CMD_BIND_GB_SHADER needs to reserve two relocations.

Brian Paul brianp at kemper.freedesktop.org
Mon Aug 4 20:06:07 UTC 2014


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

Author: Matthew McClure <mcclurem at vmware.com>
Date:   Fri Jun 27 10:24:08 2014 -0700

svga: SVGA_3D_CMD_BIND_GB_SHADER needs to reserve two relocations.

With this patch, the SVGA_3D_CMD_BIND_GB_SHADER functionality will reserve
two relocations, one for the shader ID and the second for the MOB ID.

Verified with the WDDM winsys path that the number of relocations and patch
locations required is two.

Fixes Bug 1277406

Reviewed-by: Charmaine Lee <charmainel at vmware.com>

---

 src/gallium/drivers/svga/svga_cmd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_cmd.c b/src/gallium/drivers/svga/svga_cmd.c
index 3bb93c7..474b75c 100644
--- a/src/gallium/drivers/svga/svga_cmd.c
+++ b/src/gallium/drivers/svga/svga_cmd.c
@@ -1652,7 +1652,7 @@ SVGA3D_BindGBShader(struct svga_winsys_context *swc,
       SVGA3D_FIFOReserve(swc,
                          SVGA_3D_CMD_BIND_GB_SHADER,
                          sizeof *cmd,
-                         1);  /* one relocation */
+                         2);  /* two relocations */
 
    if (!cmd)
       return PIPE_ERROR_OUT_OF_MEMORY;




More information about the mesa-commit mailing list