aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2013-10-08 05:25:35 -0400
committerThomas Hellstrom <thellstrom@vmware.com>2014-01-17 01:52:34 -0500
commit8ba07315d3ffcb7dfbb5143a3be03fe4af079969 (patch)
tree01496e4037f36a21baabd422377f25f461497444 /drivers/gpu/drm/vmwgfx
parent311474dbdc6ab0ad366fbec040dbe669edd30a35 (diff)
drm/vmwgfx: Block the BIND_SHADERCONSTS command
It's been deprecated. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c36
1 files changed, 2 insertions, 34 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
index b14adae6802d..dd5a9a297845 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
@@ -1470,38 +1470,6 @@ static int vmw_cmd_bind_gb_shader(struct vmw_private *dev_priv,
1470 cmd->body.offsetInBytes); 1470 cmd->body.offsetInBytes);
1471} 1471}
1472 1472
1473/**
1474 * vmw_cmd_bind_gb_shader_consts - Validate an SVGA_3D_CMD_BIND_SHADER_CONSTS
1475 * command
1476 *
1477 * @dev_priv: Pointer to a device private struct.
1478 * @sw_context: The software context being used for this batch.
1479 * @header: Pointer to the command header in the command stream.
1480 */
1481static int vmw_cmd_bind_gb_shader_consts(struct vmw_private *dev_priv,
1482 struct vmw_sw_context *sw_context,
1483 SVGA3dCmdHeader *header)
1484{
1485 struct vmw_bind_gb_sc_cmd {
1486 SVGA3dCmdHeader header;
1487 SVGA3dCmdBindGBShaderConsts body;
1488 } *cmd;
1489 int ret;
1490
1491 cmd = container_of(header, struct vmw_bind_gb_sc_cmd,
1492 header);
1493
1494 ret = vmw_cmd_res_check(dev_priv, sw_context, vmw_res_context,
1495 user_context_converter,
1496 &cmd->body.cid, NULL);
1497 if (unlikely(ret != 0))
1498 return ret;
1499
1500 return vmw_cmd_res_check(dev_priv, sw_context, vmw_res_surface,
1501 user_surface_converter,
1502 &cmd->body.sid, NULL);
1503}
1504
1505static int vmw_cmd_check_not_3d(struct vmw_private *dev_priv, 1473static int vmw_cmd_check_not_3d(struct vmw_private *dev_priv,
1506 struct vmw_sw_context *sw_context, 1474 struct vmw_sw_context *sw_context,
1507 void *buf, uint32_t *size) 1475 void *buf, uint32_t *size)
@@ -1680,8 +1648,8 @@ static const struct vmw_cmd_entry const vmw_cmd_entries[SVGA_3D_CMD_MAX] = {
1680 true, false, true), 1648 true, false, true),
1681 VMW_CMD_DEF(SVGA_3D_CMD_DESTROY_GB_SHADER, &vmw_cmd_invalid, 1649 VMW_CMD_DEF(SVGA_3D_CMD_DESTROY_GB_SHADER, &vmw_cmd_invalid,
1682 false, false, true), 1650 false, false, true),
1683 VMW_CMD_DEF(SVGA_3D_CMD_BIND_SHADERCONSTS, 1651 VMW_CMD_DEF(SVGA_3D_CMD_BIND_SHADERCONSTS, &vmw_cmd_invalid,
1684 &vmw_cmd_bind_gb_shader_consts, true, false, true), 1652 false, false, false),
1685 VMW_CMD_DEF(SVGA_3D_CMD_BEGIN_GB_QUERY, &vmw_cmd_begin_gb_query, 1653 VMW_CMD_DEF(SVGA_3D_CMD_BEGIN_GB_QUERY, &vmw_cmd_begin_gb_query,
1686 true, false, true), 1654 true, false, true),
1687 VMW_CMD_DEF(SVGA_3D_CMD_END_GB_QUERY, &vmw_cmd_end_gb_query, 1655 VMW_CMD_DEF(SVGA_3D_CMD_END_GB_QUERY, &vmw_cmd_end_gb_query,