Bug 109184 - tgsi_to_nir: nir_build_alu: Assertion `src_bit_size == nir_alu_type_get_type_size(op_info->input_types[i])' failed.
Summary: tgsi_to_nir: nir_build_alu: Assertion `src_bit_size == nir_alu_type_get_type_...
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-30 20:46 UTC by Christian Gmeiner
Modified: 2019-09-18 20:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Christian Gmeiner 2018-12-30 20:46:12 UTC
Run the following TGSI shader with, for instance, ir3 cmdline compiler (./src/gallium/drivers/freedreno/ir3_compiler twoside-frag.tgsi).

FRAG
PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1
DCL IN[0], COLOR, COLOR
DCL IN[1], COLOR[1], COLOR
DCL IN[2], FACE, CONSTANT
DCL OUT[0], COLOR
DCL CONST[0]
DCL TEMP[0]
DCL TEMP[1], LOCAL
IMM[0] FLT32 {    1.0000,     0.8000,     0.0000,     0.0000}
  0: MOV_SAT TEMP[0], IN[2]
  1: ADD TEMP[1].x, -CONST[0].xxxx, IMM[0].xxxx
  2: ADD_SAT TEMP[1].x, TEMP[1].xxxx, TEMP[0].xxxx
  3: IF TEMP[1].xxxx :1
  4:   MOV TEMP[1], IN[0]
  5: ELSE :1
  6:   MUL TEMP[1], IMM[0].yyyy, IN[1]
  7: ENDIF
  8: MOV OUT[0], TEMP[1]
  9: END
Comment 1 Christian Gmeiner 2018-12-30 20:53:18 UTC
(gdb) bt
#0  0x00007ffff788653f in raise () from /lib64/libc.so.6
#1  0x00007ffff7870895 in abort () from /lib64/libc.so.6
#2  0x00007ffff7870769 in __assert_fail_base.cold.0 () from /lib64/libc.so.6
#3  0x00007ffff787e9f6 in __assert_fail () from /lib64/libc.so.6
#4  0x000000000052b2c7 in nir_build_alu (build=0xa08378, op=nir_op_bcsel, src0=0xa74bc8, src1=0xa0bcb0, src2=0xa26d40, src3=0x0) at ../src/compiler/nir/nir_builder.h:409
#5  0x000000000052b4cb in nir_bcsel (build=0xa08378, src0=0xa74bc8, src1=0xa0bcb0, src2=0xa26d40) at src/compiler/nir/nir_builder_opcodes.h:196
#6  0x000000000052de41 in ttn_src_for_file_and_index (c=0xa08370, file=2, index=2, indirect=0x0, dim=0x0, dimind=0x0) at ../src/gallium/auxiliary/nir/tgsi_to_nir.c:518
#7  0x000000000052eab1 in ttn_get_src (c=0xa08370, tgsi_fsrc=0x7ffffffbd3c4, src_idx=0) at ../src/gallium/auxiliary/nir/tgsi_to_nir.c:712
#8  0x000000000053194a in ttn_emit_instruction (c=0xa08370) at ../src/gallium/auxiliary/nir/tgsi_to_nir.c:1556
#9  0x0000000000532f32 in tgsi_to_nir (tgsi_tokens=0x7ffffffbd480, options=0x794280 <options>) at ../src/gallium/auxiliary/nir/tgsi_to_nir.c:1838
#10 0x0000000000408c86 in ir3_tgsi_to_nir (compiler=0x93ef60, tokens=0x7ffffffbd480) at ../src/gallium/drivers/freedreno/ir3/ir3_gallium.c:177
#11 0x0000000000407d85 in main (argc=2, argv=0x7fffffffda78) at ../src/gallium/drivers/freedreno/ir3/ir3_cmdline.c:463
Comment 2 Timothy Arceri 2019-05-07 05:02:27 UTC
Does this still fail? There were a bunch of updates to ttn recently.
Comment 3 GitLab Migration User 2019-09-18 20:27:29 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1034.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.