From 8c8095c260def3cf7d8f2b178e897008ba3b7bb6 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 21 Oct 2016 14:22:10 -0700 Subject: [PATCH] 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 --- src/intel/blorp/blorp_genX_exec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2