OpenCL incorrect rendering of colors #51132

Closed
opened 2017-04-05 13:51:39 +02:00 by Salvador Ureña · 14 comments

System Information
Windows 7 64
AMD Radeon R9 280X
Radeon Software Version
17.4.1

Blender Version
Broken: (2.78 411e7ab)
Worked: (2.78)

Short description of error
When rendering with opencl I get strange colors and artifacts{F536493}. Does not happen when previewing.

Exact steps for others to reproduce the error
Render any scene with opencl.

gpu_error.png

**System Information** Windows 7 64 AMD Radeon R9 280X Radeon Software Version 17.4.1 **Blender Version** Broken: (2.78 411e7ab) Worked: (2.78) **Short description of error** When rendering with opencl I get strange colors and artifacts{[F536493](https://archive.blender.org/developer/F536493/gpu_error.png)}. Does not happen when previewing. **Exact steps for others to reproduce the error** Render any scene with opencl. ![gpu_error.png](https://archive.blender.org/developer/F536522/gpu_error.png)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @Asticles

Added subscriber: @Asticles
Salvador Ureña changed title from OpenCL incorrect rendering colors to OpenCL incorrect rendering of colors 2017-04-05 13:53:36 +02:00

Added subscriber: @bliblubli

Added subscriber: @bliblubli

@Asticles Could you try this build ? Release.7z
Hit F12 without changing anything once, if the bug is still there, retry with "use selective SVM compilation" activated in the render -> performance tab. Then please report results here.

@Asticles Could you try this build ? [Release.7z](https://archive.blender.org/developer/F541044/Release.7z) Hit F12 without changing anything once, if the bug is still there, retry with "use selective SVM compilation" activated in the render -> performance tab. Then please report results here.

Without changing anything.

Device init success
Using Node 15, has Name NODE_VALUE_F!nUsing Node 31, has Name NODE_SHADER_JUMP!n
Using Node 0, has Name NODE_END!nUsing Node 12, has Name NODE_GEOMETRY!nUsing No
de 4, has Name NODE_CLOSURE_SET_WEIGHT!nUsing Node 3, has Name NODE_CLOSURE_BACK
GROUND!nUsing Node 1, has Name NODE_CLOSURE_BSDF!nUsing Node 2, has Name NODE_CL
OSURE_EMISSION!nCompiling OpenCL program split_path_init
Kernel compilation of split_path_init finished in 1.40s.

Compiling OpenCL program split_scene_intersect
Kernel compilation of split_scene_intersect finished in 0.71s.

Compiling OpenCL program split_lamp_emission
Kernel compilation of split_lamp_emission finished in 3.73s.

Compiling OpenCL program split_do_volume
Kernel compilation of split_do_volume finished in 0.62s.

Compiling OpenCL program split_queue_enqueue
Kernel compilation of split_queue_enqueue finished in 0.64s.

Compiling OpenCL program split_indirect_background
Kernel compilation of split_indirect_background finished in 3.94s.

Compiling OpenCL program split_shader_eval_1
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_shader_eval_1 build output: "C:\Users\pc5\Desktop\Release\2
.78\scripts\addons\cycles\source\kernel/kernel_shadow.h", line 427: warning:
          variable "skip_object" was declared but never referenced
        const int skip_object = OBJECT_NONE;
                  ^

"C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker
nel_shader_eval_1.h", line 28: error:
          variable with automatic storage duration cannot be stored in the
          named address space
        ccl_local unsigned int local_queue_atomics;
                               ^

"C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker
nel_shader_eval_1.h", line 30: error:
          identifier "local_queue_atomics" is undefined
                local_queue_atomics = 0;
                ^

"C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker
nel_shader_eval_1.h", line 52: error:
          identifier "local_queue_atomics" is undefined
                                &local_queue_atomics,
                                 ^

"C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/kernels/o
pencl/kernel_shader_eval_1.cl", line 21: error:
          kernel arguments can't be declared with types
          bool/half/size_t/ptrdiff_t/intptr_t/uintptr_t/pointer-to-pointer
          KernelGlobals *kg,
                         ^

4 errors detected in the compilation of "C:\Users\pc5\AppData\Local\Temp\OCL4608
T15.cl".
Frontend phase failed compilation.

Error: Failed loading render kernel, see console for errors

Activating "use selective SVM compilation"

Device init success
Using Node 15, has Name NODE_VALUE_F!nUsing Node 31, has Name NODE_SHADER_JUMP!n
Using Node 0, has Name NODE_END!nUsing Node 12, has Name NODE_GEOMETRY!nUsing No
de 4, has Name NODE_CLOSURE_SET_WEIGHT!nUsing Node 3, has Name NODE_CLOSURE_BACK
GROUND!nUsing Node 2, has Name NODE_CLOSURE_EMISSION!nUsing Node 1, has Name NOD
E_CLOSURE_BSDF!nCompiling OpenCL program split_path_init
Kernel compilation of split_path_init finished in 1.38s.

Compiling OpenCL program split_scene_intersect
Kernel compilation of split_scene_intersect finished in 0.72s.

Compiling OpenCL program split_lamp_emission
Kernel compilation of split_lamp_emission finished in 2.25s.

Compiling OpenCL program split_do_volume
Kernel compilation of split_do_volume finished in 0.62s.

Compiling OpenCL program split_queue_enqueue
Kernel compilation of split_queue_enqueue finished in 0.63s.

Compiling OpenCL program split_indirect_background
Kernel compilation of split_indirect_background finished in 1.47s.

Compiling OpenCL program split_shader_eval_1
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program split_shader_eval_1 build output: "C:\Users\pc5\Desktop\Release\2
.78\scripts\addons\cycles\source\kernel/kernel_shadow.h", line 427: warning:
          variable "skip_object" was declared but never referenced
        const int skip_object = OBJECT_NONE;
                  ^

"C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker
nel_shader_eval_1.h", line 28: error:
          variable with automatic storage duration cannot be stored in the
          named address space
        ccl_local unsigned int local_queue_atomics;
                               ^

"C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker
nel_shader_eval_1.h", line 30: error:
          identifier "local_queue_atomics" is undefined
                local_queue_atomics = 0;
                ^

"C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker
nel_shader_eval_1.h", line 52: error:
          identifier "local_queue_atomics" is undefined
                                &local_queue_atomics,
                                 ^

"C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/kernels/o
pencl/kernel_shader_eval_1.cl", line 21: error:
          kernel arguments can't be declared with types
          bool/half/size_t/ptrdiff_t/intptr_t/uintptr_t/pointer-to-pointer
          KernelGlobals *kg,
                         ^

4 errors detected in the compilation of "C:\Users\pc5\AppData\Local\Temp\OCL4608
T22.cl".
Frontend phase failed compilation.

Also, when I select CPU, the render is all black.

Regards.

Without changing anything. ``` Device init success Using Node 15, has Name NODE_VALUE_F!nUsing Node 31, has Name NODE_SHADER_JUMP!n Using Node 0, has Name NODE_END!nUsing Node 12, has Name NODE_GEOMETRY!nUsing No de 4, has Name NODE_CLOSURE_SET_WEIGHT!nUsing Node 3, has Name NODE_CLOSURE_BACK GROUND!nUsing Node 1, has Name NODE_CLOSURE_BSDF!nUsing Node 2, has Name NODE_CL OSURE_EMISSION!nCompiling OpenCL program split_path_init Kernel compilation of split_path_init finished in 1.40s. Compiling OpenCL program split_scene_intersect Kernel compilation of split_scene_intersect finished in 0.71s. Compiling OpenCL program split_lamp_emission Kernel compilation of split_lamp_emission finished in 3.73s. Compiling OpenCL program split_do_volume Kernel compilation of split_do_volume finished in 0.62s. Compiling OpenCL program split_queue_enqueue Kernel compilation of split_queue_enqueue finished in 0.64s. Compiling OpenCL program split_indirect_background Kernel compilation of split_indirect_background finished in 3.94s. Compiling OpenCL program split_shader_eval_1 OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console. OpenCL program split_shader_eval_1 build output: "C:\Users\pc5\Desktop\Release\2 .78\scripts\addons\cycles\source\kernel/kernel_shadow.h", line 427: warning: variable "skip_object" was declared but never referenced const int skip_object = OBJECT_NONE; ^ "C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker nel_shader_eval_1.h", line 28: error: variable with automatic storage duration cannot be stored in the named address space ccl_local unsigned int local_queue_atomics; ^ "C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker nel_shader_eval_1.h", line 30: error: identifier "local_queue_atomics" is undefined local_queue_atomics = 0; ^ "C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker nel_shader_eval_1.h", line 52: error: identifier "local_queue_atomics" is undefined &local_queue_atomics, ^ "C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/kernels/o pencl/kernel_shader_eval_1.cl", line 21: error: kernel arguments can't be declared with types bool/half/size_t/ptrdiff_t/intptr_t/uintptr_t/pointer-to-pointer KernelGlobals *kg, ^ 4 errors detected in the compilation of "C:\Users\pc5\AppData\Local\Temp\OCL4608 T15.cl". Frontend phase failed compilation. Error: Failed loading render kernel, see console for errors ``` Activating "use selective SVM compilation" ``` Device init success Using Node 15, has Name NODE_VALUE_F!nUsing Node 31, has Name NODE_SHADER_JUMP!n Using Node 0, has Name NODE_END!nUsing Node 12, has Name NODE_GEOMETRY!nUsing No de 4, has Name NODE_CLOSURE_SET_WEIGHT!nUsing Node 3, has Name NODE_CLOSURE_BACK GROUND!nUsing Node 2, has Name NODE_CLOSURE_EMISSION!nUsing Node 1, has Name NOD E_CLOSURE_BSDF!nCompiling OpenCL program split_path_init Kernel compilation of split_path_init finished in 1.38s. Compiling OpenCL program split_scene_intersect Kernel compilation of split_scene_intersect finished in 0.72s. Compiling OpenCL program split_lamp_emission Kernel compilation of split_lamp_emission finished in 2.25s. Compiling OpenCL program split_do_volume Kernel compilation of split_do_volume finished in 0.62s. Compiling OpenCL program split_queue_enqueue Kernel compilation of split_queue_enqueue finished in 0.63s. Compiling OpenCL program split_indirect_background Kernel compilation of split_indirect_background finished in 1.47s. Compiling OpenCL program split_shader_eval_1 OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console. OpenCL program split_shader_eval_1 build output: "C:\Users\pc5\Desktop\Release\2 .78\scripts\addons\cycles\source\kernel/kernel_shadow.h", line 427: warning: variable "skip_object" was declared but never referenced const int skip_object = OBJECT_NONE; ^ "C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker nel_shader_eval_1.h", line 28: error: variable with automatic storage duration cannot be stored in the named address space ccl_local unsigned int local_queue_atomics; ^ "C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker nel_shader_eval_1.h", line 30: error: identifier "local_queue_atomics" is undefined local_queue_atomics = 0; ^ "C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/split/ker nel_shader_eval_1.h", line 52: error: identifier "local_queue_atomics" is undefined &local_queue_atomics, ^ "C:\Users\pc5\Desktop\Release\2.78\scripts\addons\cycles\source\kernel/kernels/o pencl/kernel_shader_eval_1.cl", line 21: error: kernel arguments can't be declared with types bool/half/size_t/ptrdiff_t/intptr_t/uintptr_t/pointer-to-pointer KernelGlobals *kg, ^ 4 errors detected in the compilation of "C:\Users\pc5\AppData\Local\Temp\OCL4608 T22.cl". Frontend phase failed compilation. ``` Also, when I select CPU, the render is all black. Regards.

Hi bliblubli, any news?

Hi bliblubli, any news?

Hi @Asticles ,
Sorry for the delay, I'm very busy at the moment and actually I'm not an official cycles developer. I only have rarely access to a GCN 1.0 card and it's hard to fix without proper hardware. Officially, GCN 1.0 cards will not be supported for 2.79. I can't promise anything, I'll do my best.

Hi @Asticles , Sorry for the delay, I'm very busy at the moment and actually I'm not an official cycles developer. I only have rarely access to a GCN 1.0 card and it's hard to fix without proper hardware. Officially, GCN 1.0 cards will not be supported for 2.79. I can't promise anything, I'll do my best.

Thanks for your support!

Best regards

Thanks for your support! Best regards

Hi all,

Now with latest buildbot, colors are gone, but the artifact persists.

The stange thing is that on viewport preview the cube is shown fine.

latest buildbot.png

Hi all, Now with latest buildbot, colors are gone, but the artifact persists. The stange thing is that on viewport preview the cube is shown fine. ![latest buildbot.png](https://archive.blender.org/developer/F593155/latest_buildbot.png)
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Mai Lavelle was assigned by Aaron Carlisle 2017-05-16 21:15:09 +02:00
Member
@bliblubli the 280x is actually GCN 2.0 according to http://www.club-3d.com/index.php/products/reader.en/product/radeon-r9-280x-royalqueen.html
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

Actually, I found other websites that are more trustworthy say otherwise. For example:
https://en.wikipedia.org/wiki/AMD_Radeon_Rx_200_series#Chipset_table

2.79 is going to drop support for GCN 1.0 so we will have to close this report.
By 2.79 these cards will not be selectable as compute devices.

Actually, I found other websites that are more trustworthy say otherwise. For example: https://en.wikipedia.org/wiki/AMD_Radeon_Rx_200_series#Chipset_table 2.79 is going to drop support for GCN 1.0 so we will have to close this report. By 2.79 these cards will not be selectable as compute devices.

It is very sad that a card launched in September 2013 is being dropped.
Thanks, anyway.

It is very sad that a card launched in September 2013 is being dropped. Thanks, anyway.
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#51132
No description provided.