OSDN Git Service

drm/vmwgfx: Fix compat shader namespace
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 9 Jun 2014 10:39:22 +0000 (12:39 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 4 Jul 2014 10:12:09 +0000 (12:12 +0200)
commit18e4a4669c5023eb1157f2a3f1bf6ca2b8535572
tree3d3e32d5eee38490a1660f8dfc4f62c7b8e3fd01
parentbc1dfff04a5d4064ba0db1fab13f84ab4f333d2b
drm/vmwgfx: Fix compat shader namespace

Contrary to the host-backed shader interface that has a per-context
name-space for shaders, the compat shader namespace was per client
(or rather, per file). Fix this so that the compat shader namespace is per
context, and at the same time, make command buffer managed context resource
management generic.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/vmwgfx/Makefile
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c [new file with mode: 0644]
drivers/gpu/drm/vmwgfx/vmwgfx_context.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c