nir: Add opcodes to extract bytes or words.

The uint versions zero extend while the int versions sign extend.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Matt Turner
2016-01-21 09:09:29 -08:00
parent 8709dc0713
commit 68f8c5730b
3 changed files with 28 additions and 0 deletions

View File

@@ -1471,6 +1471,9 @@ typedef struct nir_shader_compiler_options {
bool lower_pack_half_2x16;
bool lower_unpack_half_2x16;
bool lower_extract_byte;
bool lower_extract_word;
/**
* Does the driver support real 32-bit integers? (Otherwise, integers
* are simulated by floats.)