diff options
author | Keith Packard <keithp@keithp.com> | 2007-12-16 22:25:33 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-01-02 09:47:06 -0800 |
commit | a3c435b342e467020e349061ce656c68258a8576 (patch) | |
tree | e2c926a6706fe9a08e378a9c7ada53a83ef9647b /bin | |
parent | 4cc02fb9387dbeeea56de3a34854f6739dc97a80 (diff) |
Set correct flags mask when validating buffers.
The 'mask' value used in the validation operation specifies which of the
'flags' bits are being modified. Buffer validation wants to pass the memory
type and access mode (rwx) to the kernel so that the buffer will be placed
correctly, and so that the right kind of fence will be created (read vs
write). That means we actually want a constant mask for these operations,
and not something computed from the bits coming in. The constant we want is
DRM_BO_MASK_MEM | DRM_BO_FLAG_READ | DRM_BO_FLAG_WRITE | DRM_BO_FLAG_EXE.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions