From: Jason Ekstrand Date: Fri, 21 Oct 2016 21:22:10 +0000 (-0700) Subject: blorp/exec: Use uint32_t for copying varying data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c8095c260def3cf7d8f2b178e897008ba3b7bb6;p=mesa.git blorp/exec: Use uint32_t for copying varying data Some things may not be floats and intel CPUs are known for mangling bits when a float type is used for copying integers. Signed-off-by: Jason Ekstrand Reviewed-by: Topi Pohjolainen --- diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index 66d53ec2137..121f05de43e 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -197,8 +197,8 @@ blorp_emit_input_varying_data(struct blorp_batch *batch, *size = num_varyings * vec4_size_in_bytes; - const float *const inputs_src = (const float *)¶ms->wm_inputs; - float *inputs = blorp_alloc_vertex_buffer(batch, *size, addr); + const uint32_t *const inputs_src = (const uint32_t *)¶ms->wm_inputs; + uint32_t *inputs = blorp_alloc_vertex_buffer(batch, *size, addr); /* Walk over the attribute slots, determine if the attribute is used by * the program and when necessary copy the values from the input storage to