diff options
author | Matthew McClure <[email protected]> | 2014-06-27 10:24:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-08-04 14:06:13 -0600 |
commit | ff0cbfb3db40d27864d2a62dd46468513987e936 (patch) | |
tree | 5fa109879d92411685a34de24f035661bbbb184d /src/gallium/drivers/svga/svga_cmd.c | |
parent | 0236e75b2a44b85946857aa8f347c2afe8dd4d7c (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_cmd.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |