Skip to content

GLSL compilation error on Intel iGPU with Vulkan backend: non-opaque uniforms outside a block #3909

Open

Description

@onyx1110

Bug Description

When attempting to run Sodium with Minecraft's experimental Vulkan rendering backend enabled on an integrated Intel Iris X GPU, the game crashes on startup/world load due to a shader compilation error in the block_layer_opaque fragment shader.

Reproduction Steps

Steps to Reproduce:

Enable the experimental Vulkan rendering pipeline in settings.

Launch the game / load a world with Sodium installed.

The game crashes during frame rendering.

Log File

2026-09-12-5.log

Crash Report

https://mclo.gs/Xwgsres

[Render thread/ERROR]: Couldn't compile FRAGMENT shader sodium:blocks/block_layer_opaque: Couldn't parse GLSL: 0:100: error: 'non-opaque uniforms outside a block' : not allowed when using GLSL for Vulkan
[Render thread/ERROR]: Couldn't compile pipeline sodium:pipeline/solid_terrain: fragment shader sodium:blocks/block_layer_opaque was invalid
Caused by: java.lang.IllegalStateException: Pipeline is not valid (may contain invalid shaders?)

Activity

  1. douira commented on Sep 12, 2026

    @douira
    Contributor

    Please reproduce this issue with just sodium.

  2. astelmach20 commented on Sep 26, 2026

    @astelmach20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions