diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2015-11-10 10:22:56 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2015-11-18 02:45:34 -0800 |
commit | 70b080c24669353d97e99f34befede23c5c50b7b (patch) | |
tree | c99d6d372082e654bb67a75092be5bfdd7e94b20 /vmwgfx_surface.c | |
parent | 23c50374e6574cc41921d0b98e4516e0224f106f (diff) |
vmwgfx: Fix address-space- visibility- and endian warnings and errors
Found by sparse.
Also annotate and fix code to avoid confusing sparse with
unusual locking patterns.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'vmwgfx_surface.c')
-rw-r--r-- | vmwgfx_surface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vmwgfx_surface.c b/vmwgfx_surface.c index 3e5d195..5fc7135 100644 --- a/vmwgfx_surface.c +++ b/vmwgfx_surface.c @@ -224,7 +224,7 @@ static void vmw_surface_define_encode(const struct vmw_surface *srf, cmd->header.size = cmd_len; cmd->body.sid = srf->res.id; cmd->body.surfaceFlags = srf->flags; - cmd->body.format = cpu_to_le32(srf->format); + cmd->body.format = srf->format; for (i = 0; i < DRM_VMW_MAX_SURFACE_FACES; ++i) cmd->body.face[i].numMipLevels = srf->mip_levels[i]; @@ -1091,7 +1091,7 @@ static int vmw_gb_surface_create(struct vmw_resource *res) cmd2->header.size = cmd_len; cmd2->body.sid = srf->res.id; cmd2->body.surfaceFlags = srf->flags; - cmd2->body.format = cpu_to_le32(srf->format); + cmd2->body.format = srf->format; cmd2->body.numMipLevels = srf->mip_levels[0]; cmd2->body.multisampleCount = srf->multisample_count; cmd2->body.autogenFilter = srf->autogen_filter; @@ -1104,7 +1104,7 @@ static int vmw_gb_surface_create(struct vmw_resource *res) cmd->header.size = cmd_len; cmd->body.sid = srf->res.id; cmd->body.surfaceFlags = srf->flags; - cmd->body.format = cpu_to_le32(srf->format); + cmd->body.format = srf->format; cmd->body.numMipLevels = srf->mip_levels[0]; cmd->body.multisampleCount = srf->multisample_count; cmd->body.autogenFilter = srf->autogen_filter; |