aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/blorp/blorp_genX_exec.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-10-21 14:22:10 -0700
committerJason Ekstrand <[email protected]>2016-11-16 10:11:29 -0800
commit8c8095c260def3cf7d8f2b178e897008ba3b7bb6 (patch)
tree4e802fea0d8ffe9c5c6ed340050d5639153289a1 /src/intel/blorp/blorp_genX_exec.h
parent21943c35f75d90f464f8495f5282037e1c7c79d0 (diff)
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 <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp_genX_exec.h')
-rw-r--r--src/intel/blorp/blorp_genX_exec.h4
1 files 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 *)&params->wm_inputs;
- float *inputs = blorp_alloc_vertex_buffer(batch, *size, addr);
+ const uint32_t *const inputs_src = (const uint32_t *)&params->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