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:
f1b3f7b
)
nir/spirv: Use imov where we might have 8 bit types
author
Rob Clark
<robdclark@gmail.com>
Sat, 3 Mar 2018 20:31:13 +0000
(15:31 -0500)
committer
Karol Herbst
<kherbst@redhat.com>
Thu, 12 Jul 2018 11:09:00 +0000
(13:09 +0200)
Otherwise nir_validate may complain about 8 bit floats, which do not exist.
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/compiler/spirv/spirv_to_nir.c
b/src/compiler/spirv/spirv_to_nir.c
index
80a35b1
..
aad4c71
100644
(file)
--- a/
src/compiler/spirv/spirv_to_nir.c
+++ b/
src/compiler/spirv/spirv_to_nir.c
@@
-2798,7
+2798,7
@@
create_vec(struct vtn_builder *b, unsigned num_components, unsigned bit_size)
{
nir_op op;
switch (num_components) {
- case 1: op = nir_op_
f
mov; break;
+ case 1: op = nir_op_
i
mov; break;
case 2: op = nir_op_vec2; break;
case 3: op = nir_op_vec3; break;
case 4: op = nir_op_vec4; break;
@@
-2847,7
+2847,7
@@
nir_ssa_def *
vtn_vector_extract(struct vtn_builder *b, nir_ssa_def *src, unsigned index)
{
unsigned swiz[4] = { index };
- return nir_swizzle(&b->nb, src, swiz, 1,
tru
e);
+ return nir_swizzle(&b->nb, src, swiz, 1,
fals
e);
}
nir_ssa_def *