OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e6c8b0
)
intel/compiler: implement 8-bit constant load
author
Iago Toral Quiroga
<itoral@igalia.com>
Fri, 27 Jul 2018 11:38:39 +0000
(13:38 +0200)
committer
Iago Toral Quiroga
<itoral@igalia.com>
Wed, 1 Aug 2018 06:08:15 +0000
(08:08 +0200)
Fixes VK-GL-CTS CL#2567
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_nir.cpp
patch
|
blob
|
history
diff --git
a/src/intel/compiler/brw_fs_nir.cpp
b/src/intel/compiler/brw_fs_nir.cpp
index
2c8595b
..
6e9a582
100644
(file)
--- a/
src/intel/compiler/brw_fs_nir.cpp
+++ b/
src/intel/compiler/brw_fs_nir.cpp
@@
-1587,6
+1587,11
@@
fs_visitor::nir_emit_load_const(const fs_builder &bld,
fs_reg reg = bld.vgrf(reg_type, instr->def.num_components);
switch (instr->def.bit_size) {
+ case 8:
+ for (unsigned i = 0; i < instr->def.num_components; i++)
+ bld.MOV(offset(reg, bld, i), setup_imm_b(bld, instr->value.i8[i]));
+ break;
+
case 16:
for (unsigned i = 0; i < instr->def.num_components; i++)
bld.MOV(offset(reg, bld, i), brw_imm_w(instr->value.i16[i]));