Commit b2898404 authored by Deepak Rawat's avatar Deepak Rawat

drm/vmwgfx: Clean up some debug messages in vmwgfx_execbuf.c

Now that vmw_cmd_check prints debug message whenever a command verifier
fails, some of debug statements are unnecessary. Also rearranged some
debug print-out with this patch.
Signed-off-by: default avatarDeepak Rawat <drawat@vmware.com>
Reviewed-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
parent 45399b11
...@@ -217,7 +217,6 @@ static int vmw_cmd_ctx_first_setup(struct vmw_private *dev_priv, ...@@ -217,7 +217,6 @@ static int vmw_cmd_ctx_first_setup(struct vmw_private *dev_priv,
sw_context->staged_bindings = sw_context->staged_bindings =
vmw_binding_state_alloc(dev_priv); vmw_binding_state_alloc(dev_priv);
if (IS_ERR(sw_context->staged_bindings)) { if (IS_ERR(sw_context->staged_bindings)) {
VMW_DEBUG_USER("Failed to alloc ctx binding info.\n");
ret = PTR_ERR(sw_context->staged_bindings); ret = PTR_ERR(sw_context->staged_bindings);
sw_context->staged_bindings = NULL; sw_context->staged_bindings = NULL;
goto out_err; goto out_err;
...@@ -227,7 +226,6 @@ static int vmw_cmd_ctx_first_setup(struct vmw_private *dev_priv, ...@@ -227,7 +226,6 @@ static int vmw_cmd_ctx_first_setup(struct vmw_private *dev_priv,
if (sw_context->staged_bindings_inuse) { if (sw_context->staged_bindings_inuse) {
node->staged = vmw_binding_state_alloc(dev_priv); node->staged = vmw_binding_state_alloc(dev_priv);
if (IS_ERR(node->staged)) { if (IS_ERR(node->staged)) {
VMW_DEBUG_USER("Failed to alloc ctx binding info.\n");
ret = PTR_ERR(node->staged); ret = PTR_ERR(node->staged);
node->staged = NULL; node->staged = NULL;
goto out_err; goto out_err;
...@@ -327,9 +325,11 @@ static int vmw_execbuf_res_noref_val_add(struct vmw_sw_context *sw_context, ...@@ -327,9 +325,11 @@ static int vmw_execbuf_res_noref_val_add(struct vmw_sw_context *sw_context,
if (priv_size && first_usage) { if (priv_size && first_usage) {
ret = vmw_cmd_ctx_first_setup(dev_priv, sw_context, res, ret = vmw_cmd_ctx_first_setup(dev_priv, sw_context, res,
ctx_info); ctx_info);
if (ret) if (ret) {
VMW_DEBUG_USER("Failed first usage context setup.\n");
return ret; return ret;
} }
}
vmw_execbuf_rcache_update(rcache, res, ctx_info); vmw_execbuf_rcache_update(rcache, res, ctx_info);
return 0; return 0;
...@@ -421,10 +421,8 @@ vmw_view_id_val_add(struct vmw_sw_context *sw_context, ...@@ -421,10 +421,8 @@ vmw_view_id_val_add(struct vmw_sw_context *sw_context,
struct vmw_resource *view; struct vmw_resource *view;
int ret; int ret;
if (!ctx_node) { if (!ctx_node)
VMW_DEBUG_USER("DX Context not set.\n");
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
}
view = vmw_view_lookup(sw_context->man, view_type, id); view = vmw_view_lookup(sw_context->man, view_type, id);
if (IS_ERR(view)) if (IS_ERR(view))
...@@ -723,10 +721,8 @@ static int vmw_rebind_all_dx_query(struct vmw_resource *ctx_res) ...@@ -723,10 +721,8 @@ static int vmw_rebind_all_dx_query(struct vmw_resource *ctx_res)
cmd = vmw_fifo_reserve_dx(dev_priv, sizeof(*cmd), ctx_res->id); cmd = vmw_fifo_reserve_dx(dev_priv, sizeof(*cmd), ctx_res->id);
if (cmd == NULL) { if (cmd == NULL)
VMW_DEBUG_USER("Failed to rebind queries.\n");
return -ENOMEM; return -ENOMEM;
}
cmd->header.id = SVGA_3D_CMD_DX_BIND_ALL_QUERY; cmd->header.id = SVGA_3D_CMD_DX_BIND_ALL_QUERY;
cmd->header.size = sizeof(cmd->body); cmd->header.size = sizeof(cmd->body);
...@@ -761,9 +757,11 @@ static int vmw_rebind_contexts(struct vmw_sw_context *sw_context) ...@@ -761,9 +757,11 @@ static int vmw_rebind_contexts(struct vmw_sw_context *sw_context)
} }
ret = vmw_rebind_all_dx_query(val->ctx); ret = vmw_rebind_all_dx_query(val->ctx);
if (ret != 0) if (ret != 0) {
VMW_DEBUG_USER("Failed to rebind queries.\n");
return ret; return ret;
} }
}
return 0; return 0;
} }
...@@ -2713,8 +2711,6 @@ static int vmw_cmd_dx_destroy_shader(struct vmw_private *dev_priv, ...@@ -2713,8 +2711,6 @@ static int vmw_cmd_dx_destroy_shader(struct vmw_private *dev_priv,
ret = vmw_shader_remove(sw_context->man, cmd->body.shaderId, 0, ret = vmw_shader_remove(sw_context->man, cmd->body.shaderId, 0,
&sw_context->staged_cmd_res); &sw_context->staged_cmd_res);
if (ret)
VMW_DEBUG_USER("Could not find shader to remove.\n");
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment