Viewport glsl bug #48638

Closed
opened 2016-06-12 16:48:55 +02:00 by alabd · 8 comments

System Information
Arch Linux
intel i915 (OpenGL2.1//GLSL 1.2)

Blender Version
Broken: 2.77a - UPBGE v0.0.7

When I switch to texture and GLSL mode, there is an error in terminal:

GPUShader: compile error:
0:2375(6): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2375(6): error: type mismatch
0:2376(7): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2376(7): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2376(7): error: type mismatch
0:2376(6): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2377(7): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2377(7): error: type mismatch
0:2766(17): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2766(27): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2766(43): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2766(38): error: cannot construct bool' from a non-numeric data type 0:2766(16): error: operands of==' must have the same type
0:2784(18): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2784(18): error: operands of !=' must have the same type 0:2785(12): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2785(12): error: operands of!=' must have the same type
0:2793(36): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2793(36): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2793(36): error: type mismatch
0:2793(53): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required)
0:2793(53): error: type mismatch
0:2793(35): error: operands to arithmetic operators must be numeric
0:2793(21): error: no matching function for call to integer_noise(error)'; candidates are: 0:2793(21): error: float integer_noise(int) 0:2793(21): error: operands to arithmetic operators must be numeric 0:2793(14): error: no matching function for call toclamp(error, float, float)'; candidates are:
0:2793(14): error: float clamp(float, float, float)
0:2793(14): error: vec3 clamp(vec3, vec3, vec3)
0:2793(14): error: float clamp(float, float, float)
0:2793(14): error: vec2 clamp(vec2, float, float)
0:2793(14): error: vec3 clamp(vec3, float, float)
0:2793(14): error: vec4 clamp(vec4, float, float)
0:2793(14): error: vec2 clamp(vec2, vec2, vec2)
0:2793(14): error: vec3 clamp(vec3, vec3, vec3)
0:2793(14): error: vec4 clamp(vec4, vec4, vec4)
0:2793(14): error: int clamp(int, int, int)
0:2793(14): error: ivec2 clamp(ivec2, int, int)
0:2793(14): error: ivec3 clamp(ivec3, int, int)
0:2793(14): error: ivec4 clamp(ivec4, int, int)
0:2793(14): error: ivec2 clamp(ivec2, ivec2, ivec2)
0:2793(14): error: ivec3 clamp(ivec3, ivec3, ivec3)
0:2793(14): error: ivec4 clamp(ivec4, ivec4, ivec4)
0:2793(9): error: cannot construct vec2' from a non-numeric data type 0:2793(2): error:return' with wrong type error, in function `calc_brick_texture' returning vec2

Here is a shot: viewport_bug.png

After bisect, I found that this bug related to: Support gradient Cycles texture in GLSL viewport

**System Information** Arch Linux intel i915 (OpenGL2.1//GLSL 1.2) **Blender Version** Broken: 2.77a - UPBGE v0.0.7 When I switch to texture and GLSL mode, there is an error in terminal: ``` GPUShader: compile error: 0:2375(6): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2375(6): error: type mismatch 0:2376(7): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2376(7): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2376(7): error: type mismatch 0:2376(6): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2377(7): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2377(7): error: type mismatch 0:2766(17): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2766(27): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2766(43): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2766(38): error: cannot construct bool' from a non-numeric data type 0:2766(16): error: operands of==' must have the same type 0:2784(18): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2784(18): error: operands of !=' must have the same type 0:2785(12): error: operator '%' is reserved in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2785(12): error: operands of!=' must have the same type 0:2793(36): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2793(36): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2793(36): error: type mismatch 0:2793(53): error: bit-wise operations are forbidden in GLSL 1.20 (GLSL 1.30 or GLSL ES 3.00 required) 0:2793(53): error: type mismatch 0:2793(35): error: operands to arithmetic operators must be numeric 0:2793(21): error: no matching function for call to integer_noise(error)'; candidates are: 0:2793(21): error: float integer_noise(int) 0:2793(21): error: operands to arithmetic operators must be numeric 0:2793(14): error: no matching function for call toclamp(error, float, float)'; candidates are: 0:2793(14): error: float clamp(float, float, float) 0:2793(14): error: vec3 clamp(vec3, vec3, vec3) 0:2793(14): error: float clamp(float, float, float) 0:2793(14): error: vec2 clamp(vec2, float, float) 0:2793(14): error: vec3 clamp(vec3, float, float) 0:2793(14): error: vec4 clamp(vec4, float, float) 0:2793(14): error: vec2 clamp(vec2, vec2, vec2) 0:2793(14): error: vec3 clamp(vec3, vec3, vec3) 0:2793(14): error: vec4 clamp(vec4, vec4, vec4) 0:2793(14): error: int clamp(int, int, int) 0:2793(14): error: ivec2 clamp(ivec2, int, int) 0:2793(14): error: ivec3 clamp(ivec3, int, int) 0:2793(14): error: ivec4 clamp(ivec4, int, int) 0:2793(14): error: ivec2 clamp(ivec2, ivec2, ivec2) 0:2793(14): error: ivec3 clamp(ivec3, ivec3, ivec3) 0:2793(14): error: ivec4 clamp(ivec4, ivec4, ivec4) 0:2793(9): error: cannot construct vec2' from a non-numeric data type 0:2793(2): error:return' with wrong type error, in function `calc_brick_texture' returning vec2 ``` Here is a shot: [viewport_bug.png ](http://www.mediafire.com/view/m76crmgvb830foh/viewport_bug.png) After bisect, I found that this bug related to: [Support gradient Cycles texture in GLSL viewport ](https://developer.blender.org/rB7ab55d894713fede179df652ba59cc241658dc28)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @alabd14313

Added subscriber: @alabd14313
Author

Is this related to it's parent commit, too?
Support Cycles brick texture in GLSL viewport

Is this related to it's parent commit, too? [Support Cycles brick texture in GLSL viewport ](https://developer.blender.org/rBb79214bbc54635ee76c41fd80a1bc67530770d63)

Added subscriber: @you.le

Added subscriber: @you.le

Precision: alabd says that this bug is only on upbge... It's a bit weird as it seems it's cycles related. But I'll help him to build last upbge sources and we'll see if the bug is still there. I'll close the bug report if we find a solution...

Precision: alabd says that this bug is only on upbge... It's a bit weird as it seems it's cycles related. But I'll help him to build last upbge sources and we'll see if the bug is still there. I'll close the bug report if we find a solution...

Added subscriber: @panzergame

Added subscriber: @panzergame

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Porteries Tristan self-assigned this 2016-06-12 20:18:58 +02:00

I close the bug since this bug is reproduced only in UPBGE even if the bisected commit is not our. If the bisected commit is the right one we will reopen.
Sorry for the bothering.

I close the bug since this bug is reproduced only in UPBGE even if the bisected commit is not our. If the bisected commit is the right one we will reopen. Sorry for the bothering.
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
3 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#48638
No description provided.