[Intel-gfx] [PATCH] drm/i915: Reject garbage in unsed ctx create/destroy fields

Chris Wilson chris at chris-wilson.co.uk
Wed Feb 11 02:01:33 PST 2015


On Wed, Feb 11, 2015 at 08:44:47AM +0100, Daniel Vetter wrote:
> Forgotten ever since, but luckily we're at least good at memset.
> 
> Testecase: igt/gem_ctx_create/invalid-pad
> Testecase: igt/gem_ctx_bad_destroy/invalid-pad
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>

I wonder if we used mbz instead of pad, we would have a slightly more
obvious reminder to zero the fields.

Looks like pad is only cleared fortuituosly in current userspace though.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list