From ff0cbfb3db40d27864d2a62dd46468513987e936 Mon Sep 17 00:00:00 2001 From: Matthew McClure Date: Fri, 27 Jun 2014 10:24:08 -0700 Subject: [PATCH] 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 --- 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 3bb93c750b4..474b75c3c86 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; -- 2.30.2