[Mesa-dev] [PATCH 1/2] i965: Add an OUT_BATCH64() macro.

Matt Turner mattst88 at gmail.com
Fri Feb 17 16:26:39 UTC 2017


On Tue, Feb 14, 2017 at 1:45 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.h b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
> index bf7cadfc4d6..da8f7e561f4 100644
> --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.h
> +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
> @@ -161,6 +161,7 @@ intel_batchbuffer_advance(struct brw_context *brw)
>
>  #define OUT_BATCH(d) *__map++ = (d)
>  #define OUT_BATCH_F(f) OUT_BATCH(float_as_int((f)))
> +#define OUT_BATCH64(d) *((uint64_t *) __map) = (d); __map += 2

Does this not generate strict aliasing warnings?


More information about the mesa-dev mailing list