Malformed wired objects on Linux with Crocus driver #102024

Closed
opened 2022-10-23 19:12:07 +02:00 by Pavel Duong · 22 comments

System Information
Operating system: Arch Linux
Graphics card: Intel Graphics HD 4000 with MESA_LOADER_DRIVER_OVERRIDE=crocus

Blender Version
Broken: 763ad17769f4
Worked: 3.3.1

Short description of error

Viewing cameras, empties (as arrows/axis) and any light will render malformed, as shown in the picture below.

Screenshot_2022-10-23_19-01-56.png

Also appending outputs system-info.txt and glxinfo, in case it might help.

system-info.txt
glxinfo.txt

Exact steps for others to reproduce the error

  1. Open a file with either a camera, any light or arrows empty
  2. See it is malformed
**System Information** Operating system: Arch Linux Graphics card: Intel Graphics HD 4000 with `MESA_LOADER_DRIVER_OVERRIDE=crocus` **Blender Version** Broken: `763ad17769f4` Worked: 3.3.1 **Short description of error** Viewing cameras, empties (as arrows/axis) and any light will render malformed, as shown in the picture below. ![Screenshot_2022-10-23_19-01-56.png](https://archive.blender.org/developer/F13753703/Screenshot_2022-10-23_19-01-56.png) Also appending outputs `system-info.txt` and `glxinfo`, in case it might help. [system-info.txt](https://archive.blender.org/developer/F13753705/system-info.txt) [glxinfo.txt](https://archive.blender.org/developer/F13753706/glxinfo.txt) **Exact steps for others to reproduce the error** 1. Open a file with either a camera, any light or arrows empty 2. See it is malformed
Author

Added subscriber: @vignette

Added subscriber: @vignette

#104152 was marked as duplicate of this issue

#104152 was marked as duplicate of this issue

#103741 was marked as duplicate of this issue

#103741 was marked as duplicate of this issue

#103360 was marked as duplicate of this issue

#103360 was marked as duplicate of this issue

#103038 was marked as duplicate of this issue

#103038 was marked as duplicate of this issue
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Intel Graphics HD 4000

Hi, thanks for the report. GPU you've been using is not supported anymore: Haswell architecture and newer required
Not sure if we accept reports for these GPUs when drivers are different. Leaving this report open for others to check.

> `Intel Graphics HD 4000` Hi, thanks for the report. GPU you've been using is not supported anymore: [Haswell architecture and newer required ](https://www.blender.org/download/requirements/) Not sure if we accept reports for these GPUs when drivers are different. Leaving this report open for others to check.
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Member

Corcus is a new driver and such bugs might be expected, it is best if you report this to Mesa instead.
But since this GPU has limited support, I will archive this report for now.

Corcus is a new driver and such bugs might be expected, it is best if you report this to Mesa instead. But since this GPU has limited support, I will archive this report for now.
Member

Added subscribers: @cyberplebian, @Raimund58

Added subscribers: @cyberplebian, @Raimund58
Member

Added subscriber: @Juntae-Jeong

Added subscriber: @Juntae-Jeong
Member

Added subscriber: @Pxy-Gnomes

Added subscriber: @Pxy-Gnomes
Member

Added subscriber: @zeauro

Added subscriber: @zeauro
Author

Given that this issue had been receiving some attention recently, and to satisfy my curiosity and to try bisecting, I've found that the first bad commit is f61ff22967.

Given that this issue had been receiving some attention recently, and to satisfy my curiosity and to try bisecting, I've found that the first bad commit is f61ff22967c5f3be2d5f661ce2d455e3e9d39f0a.
Member

@vignette hi, thanks for bisecting. Not sure whether this issue would get more attention, GPU itself is below minimum requirements.

@vignette hi, thanks for bisecting. Not sure whether this issue would get more attention, GPU itself is below minimum requirements.
Author

@PratikPB2123 No worries, I've done the bisect just for learning on how does the bisect tool work.

On the other hand, it seem that this can be fixed/worked around by modifying the source/blender/draw/intern/draw_shader_shared.h as such:

--- a/source/blender/draw/intern/draw_shader_shared.h
+++ b/source/blender/draw/intern/draw_shader_shared.h

@@ -153,6 +153,7 @@ struct ObjectInfos {
   float4 orco_mul_bias[2];
   float4 ob_color;
   float4 infos;
+  uint4 _dummy;
 #else
   /** Uploaded as center + size. Converted to mul+bias to local coord. */
   float3 orco_add;

...by adding an unused field into ObjectInfos when it's GPU_SHADER.

@PratikPB2123 No worries, I've done the bisect just for learning on how does the bisect tool work. On the other hand, it seem that this can be fixed/worked around by modifying the `source/blender/draw/intern/draw_shader_shared.h` as such: ```diff --- a/source/blender/draw/intern/draw_shader_shared.h +++ b/source/blender/draw/intern/draw_shader_shared.h @@ -153,6 +153,7 @@ struct ObjectInfos { float4 orco_mul_bias[2]; float4 ob_color; float4 infos; + uint4 _dummy; #else /** Uploaded as center + size. Converted to mul+bias to local coord. */ float3 orco_add; ``` ...by adding an unused field into ObjectInfos when it's GPU_SHADER.
Member

#873397: Would leave this one to community effort as it is below our minimum requirements.

@Jeroen-Bakker , what do you think about the workaround mentioned in above comment?

> [#873397: ](https://projects.blender.org/blender/blender/issues/104495#issuecomment-873397) Would leave this one to community effort as it is below our minimum requirements. @Jeroen-Bakker , what do you think about the workaround mentioned in above comment?
Member

Looking at the work-around it seems like the memory alignment of the driver is incorrect. The Struct is already 64 bytes, which is the ideal alignment. adding 16 more bytes to it just feels weird.

isn't the issue that orco_mul_bias is not interpreted as two vector by that driver, but just as a single. This would make more sense why adding the dummy would work for this case, but... It might still fail when the orco_mul_bias is used.

I don't think we should add this work-around to master in this form without validating what is actually failing.

Looking at the work-around it seems like the memory alignment of the driver is incorrect. The Struct is already 64 bytes, which is the ideal alignment. adding 16 more bytes to it just feels weird. isn't the issue that `orco_mul_bias` is not interpreted as two vector by that driver, but just as a single. This would make more sense why adding the dummy would work for this case, but... It might still fail when the `orco_mul_bias` is used. I don't think we should add this work-around to master in this form without validating what is actually failing.

This issue also occurs on Intel HD Graphics 4400 Haswell architecture with crocus driver

This issue also occurs on Intel HD Graphics 4400 Haswell architecture with crocus driver

Haswell architecture is supported by Blender, I would really love to see this bug fixed, if possible.
Thank you for your work!

Haswell architecture is supported by Blender, I would really love to see this bug fixed, if possible. Thank you for your work!

System Information
Operating system: Arch Linux
Graphics card: Intel Graphics HD 4000 with MESA_LOADER_DRIVER_OVERRIDE=crocus

Blender Version
Broken: 763ad17769f4
Worked: 3.3.1

Short description of error

Viewing cameras, empties (as arrows/axis) and any light will render malformed, as shown in the picture below.

Screenshot_2022-10-23_19-01-56.png

Also appending outputs system-info.txt and glxinfo, in case it might help.

system-info.txt
glxinfo.txt

Exact steps for others to reproduce the error

  1. Open a file with either a camera, any light or arrows empty
  2. See it is malformed

Hmm, well can i change the crocus driver to something else? or i'll have to build my own blender build?

> **System Information** > Operating system: Arch Linux > Graphics card: Intel Graphics HD 4000 with `MESA_LOADER_DRIVER_OVERRIDE=crocus` > > **Blender Version** > Broken: `763ad17769f4` > Worked: 3.3.1 > > **Short description of error** > > Viewing cameras, empties (as arrows/axis) and any light will render malformed, as shown in the picture below. > > ![Screenshot_2022-10-23_19-01-56.png](https://archive.blender.org/developer/F13753703/Screenshot_2022-10-23_19-01-56.png) > > Also appending outputs `system-info.txt` and `glxinfo`, in case it might help. > > [system-info.txt](https://archive.blender.org/developer/F13753705/system-info.txt) > [glxinfo.txt](https://archive.blender.org/developer/F13753706/glxinfo.txt) > > **Exact steps for others to reproduce the error** > > 1. Open a file with either a camera, any light or arrows empty > 2. See it is malformed Hmm, well can i change the crocus driver to something else? or i'll have to build my own blender build?
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#102024
No description provided.