summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/auxiliary/tgsi/tgsi_exec.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/tgsi/tgsi_exec.h')
-rw-r--r--lib/mesa/src/gallium/auxiliary/tgsi/tgsi_exec.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/tgsi/tgsi_exec.h b/lib/mesa/src/gallium/auxiliary/tgsi/tgsi_exec.h
index 80acf6359..6e13618fb 100644
--- a/lib/mesa/src/gallium/auxiliary/tgsi/tgsi_exec.h
+++ b/lib/mesa/src/gallium/auxiliary/tgsi/tgsi_exec.h
@@ -73,17 +73,18 @@ extern "C" {
*/
union tgsi_exec_channel
{
+ alignas(16)
float f[TGSI_QUAD_SIZE];
int i[TGSI_QUAD_SIZE];
unsigned u[TGSI_QUAD_SIZE];
-} ALIGN16;
+};
/**
* A vector[RGBA] of channels[4 pixels]
*/
-struct ALIGN16 tgsi_exec_vector
+struct tgsi_exec_vector
{
- union tgsi_exec_channel xyzw[TGSI_NUM_CHANNELS];
+ alignas(16) union tgsi_exec_channel xyzw[TGSI_NUM_CHANNELS];
};
/**
@@ -286,10 +287,11 @@ typedef void (* apply_sample_offset_func)(
/**
* Run-time virtual machine state for executing TGSI shader.
*/
-struct ALIGN16 tgsi_exec_machine
+struct tgsi_exec_machine
{
/* Total = program temporaries + internal temporaries
*/
+ alignas(16)
struct tgsi_exec_vector Temps[TGSI_EXEC_NUM_TEMPS];
unsigned ImmsReserved;
@@ -480,8 +482,6 @@ tgsi_exec_get_shader_param(enum pipe_shader_cap param)
return 1 << PIPE_SHADER_IR_TGSI;
case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED:
return 1;
- case PIPE_SHADER_CAP_DFRACEXP_DLDEXP_SUPPORTED:
- case PIPE_SHADER_CAP_LDEXP_SUPPORTED:
case PIPE_SHADER_CAP_TGSI_ANY_INOUT_DECL_RANGE:
return 1;
case PIPE_SHADER_CAP_DROUND_SUPPORTED: