pipebuffer, winsys/svga: Add functionality to update pb_validate_entry flags
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 10 May 2019 11:45:19 +0000 (13:45 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 17 May 2019 06:44:31 +0000 (08:44 +0200)
commit1a66ead1c75246224bf43e82a07b4fdb2891959a
treec878186234c2971df45bf90f05d2d131af0522f2
parenta119da3bc9bde850717f9f03a2eeddef520b9416
pipebuffer, winsys/svga: Add functionality to update pb_validate_entry flags

In order to be able to add access modes to a pb_validate_entry, update
the pb_validate_add_buffer function to take a pointer hash table and also
to return whether the buffer was already on the validate list.

Update the svga winsys accordingly.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/auxiliary/pipebuffer/pb_validate.c
src/gallium/auxiliary/pipebuffer/pb_validate.h
src/gallium/winsys/svga/drm/vmw_context.c