Advertisement
Guest User

Untitled

a guest
Sep 14th, 2023
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. ➜ bin ./lima_compiler load_deref.frag
  2. (
  3. (declare (location=2 shader_out mediump ) vec4 gl_FragColor)
  4. (declare (location=25 shader_in mediump ) vec2 gl_PointCoord)
  5. (declare (location=24 shader_in flat) bool gl_FrontFacing)
  6. (declare (location=0 shader_in mediump ) vec4 gl_FragCoord)
  7. (declare (shader_in lowp ) vec2 test)
  8. (declare (uniform lowp ) sampler2D texture)
  9. ( function main
  10. (signature void
  11. (parameters
  12. )
  13. (
  14. (assign (xyzw) (var_ref gl_FragColor) (tex vec4 (var_ref texture) (var_ref test) 0 0 1 () () ))
  15. ))
  16.  
  17. )
  18.  
  19. )
  20. (
  21. (declare (location=2 shader_out mediump ) vec4 gl_FragColor)
  22. (declare (location=25 shader_in mediump ) vec2 gl_PointCoord)
  23. (declare (location=24 shader_in flat) bool gl_FrontFacing)
  24. (declare (location=0 shader_in mediump ) vec4 gl_FragCoord)
  25. (declare (shader_in lowp ) vec2 test)
  26. (declare (uniform lowp ) sampler2D texture)
  27. ( function main
  28. (signature void
  29. (parameters
  30. )
  31. (
  32. (assign (xyzw) (var_ref gl_FragColor) (tex vec4 (var_ref texture) (var_ref test) 0 0 1 () () ))
  33. ))
  34.  
  35. )
  36.  
  37. )
  38. shader: MESA_SHADER_FRAGMENT
  39. source_sha1: {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}
  40. name: GLSL0
  41. internal: false
  42. stage: 4
  43. next_stage: 0
  44. subgroup_size: 1
  45. inputs: 0
  46. outputs: 0
  47. uniforms: 0
  48. decl_var uniform INTERP_MODE_NONE none lowp sampler2D texture (~0, 0, 0)
  49. decl_var shader_in INTERP_MODE_NONE none mediump vec2 gl_PointCoord (VARYING_SLOT_PNTC.xy, 0, 0)
  50. decl_var shader_in INTERP_MODE_FLAT none bool gl_FrontFacing (VARYING_SLOT_FACE.x, 0, 0)
  51. decl_var shader_in INTERP_MODE_NONE none mediump vec4 gl_FragCoord (VARYING_SLOT_POS.xyzw, 0, 0)
  52. decl_var shader_in INTERP_MODE_NONE none lowp vec2 test (UNKNOWN.xy, 0, 0)
  53. decl_var shader_out INTERP_MODE_NONE none mediump vec4 gl_FragColor (FRAG_RESULT_COLOR.xyzw, 0, 0)
  54. decl_function main (0 params)
  55.  
  56. impl main {
  57. decl_var INTERP_MODE_NONE none mediump vec4 out@gl_FragColor-temp
  58. block b0: // preds:
  59. 32 %0 = deref_var &out@gl_FragColor-temp (function_temp vec4)
  60. 32 %1 = deref_var &texture (uniform sampler2D)
  61. 32 %2 = deref_var &test (shader_in vec2)
  62. 32x2 %3 = @load_deref (%2) (access=none)
  63. 32x4 %4 = (float32)tex %1 (texture_deref), %1 (sampler_deref), %3 (coord)
  64. @store_deref (%0, %4) (wrmask=xyzw, access=none)
  65. 32 %5 = deref_var &out@gl_FragColor-temp (function_temp vec4)
  66. 32 %6 = deref_var &gl_FragColor (shader_out vec4)
  67. 32x4 %7 = @load_deref (%5) (access=none)
  68. @store_deref (%6, %7) (wrmask=xyzw, access=none)
  69. // succs: b1
  70. block b1:
  71. }
  72.  
  73. shader: MESA_SHADER_FRAGMENT
  74. source_sha1: {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}
  75. name: GLSL0
  76. internal: false
  77. stage: 4
  78. next_stage: 0
  79. subgroup_size: 1
  80. inputs: 0
  81. outputs: 0
  82. uniforms: 0
  83. decl_var uniform INTERP_MODE_NONE none lowp sampler2D texture (~0, 0, 0)
  84. decl_var shader_in INTERP_MODE_NONE none mediump vec2 gl_PointCoord (VARYING_SLOT_PNTC.xy, 0, 0)
  85. decl_var shader_in INTERP_MODE_FLAT none bool gl_FrontFacing (VARYING_SLOT_FACE.x, 0, 0)
  86. decl_var shader_in INTERP_MODE_NONE none mediump vec4 gl_FragCoord (VARYING_SLOT_POS.xyzw, 0, 0)
  87. decl_var shader_in INTERP_MODE_NONE none lowp vec2 test (UNKNOWN.xy, 0, 0)
  88. decl_var shader_out INTERP_MODE_NONE none mediump vec4 gl_FragColor (FRAG_RESULT_COLOR.xyzw, 0, 0)
  89. decl_function main (0 params)
  90.  
  91. impl main {
  92. decl_var INTERP_MODE_NONE none mediump vec4 out@gl_FragColor-temp
  93. block b0: // preds:
  94. 32 %0 = deref_var &out@gl_FragColor-temp (function_temp vec4)
  95. 32 %1 = deref_var &texture (uniform sampler2D)
  96. 32 %2 = deref_var &test (shader_in vec2)
  97. 32x2 %3 = @load_deref (%2) (access=none)
  98. 32x4 %4 = (float32)tex %1 (texture_deref), %1 (sampler_deref), %3 (coord)
  99. @store_deref (%0, %4) (wrmask=xyzw, access=none)
  100. 32 %5 = deref_var &out@gl_FragColor-temp (function_temp vec4)
  101. 32 %6 = deref_var &gl_FragColor (shader_out vec4)
  102. 32x4 %7 = @load_deref (%5) (access=none)
  103. @store_deref (%6, %7) (wrmask=xyzw, access=none)
  104. // succs: b1
  105. block b1:
  106. }
  107.  
  108. lima_compiler: ../src/compiler/glsl/gl_nir_lower_samplers_as_deref.c:179: lower_deref: Assertion `location < state->shader_program->data->NumUniformStorage && state->shader_program->data->UniformStorage[location].opaque[stage].active' failed.
  109. [1] 3816771 IOT instruction (core dumped) ./lima_compiler load_deref.frag
  110.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement