diff options
author | Karol Herbst <[email protected]> | 2018-01-25 07:59:06 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-03-14 10:08:42 -0400 |
commit | b617bfcccfd906c638ef6c6eb5adab857e1938e5 (patch) | |
tree | 01c44f5b0cf4fa03642d6333b7faa15110581074 /src/mesa/program | |
parent | fcf267ba087dd00c48ceaf9277424dac079f9319 (diff) |
compiler: int8/uint8 support
OpenCL kernels also have int8/uint8.
v2: remove changes in nir_search as Jason posted a patch for that
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Signed-off-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 74089605029..29025d1c177 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -506,6 +506,8 @@ storage_type_size(const struct glsl_type *type, bool bindless) switch (type->base_type) { case GLSL_TYPE_UINT: case GLSL_TYPE_INT: + case GLSL_TYPE_UINT8: + case GLSL_TYPE_INT8: case GLSL_TYPE_UINT16: case GLSL_TYPE_INT16: case GLSL_TYPE_FLOAT: @@ -2534,6 +2536,7 @@ _mesa_associate_uniform_storage(struct gl_context *ctx, /* fallthrough */ case GLSL_TYPE_UINT: case GLSL_TYPE_UINT16: + case GLSL_TYPE_UINT8: assert(ctx->Const.NativeIntegers); format = uniform_native; columns = 1; @@ -2544,6 +2547,7 @@ _mesa_associate_uniform_storage(struct gl_context *ctx, /* fallthrough */ case GLSL_TYPE_INT: case GLSL_TYPE_INT16: + case GLSL_TYPE_INT8: format = (ctx->Const.NativeIntegers) ? uniform_native : uniform_int_float; columns = 1; |