jbarczak / haxwell Goto Github PK
View Code? Open in Web Editor NEWCode which loads custom ISA on Intel Haswell GPUs
License: GNU General Public License v3.0
Code which loads custom ISA on Intel Haswell GPUs
License: GNU General Public License v3.0
Hi,
it's not an issue per se but I'm trying to understant how to implement INTEL_fragment_shader_ordering or ARB_fragment_shader_interlock in Mesa and have a hard time deciphering Intel GFX docs..
your project would be nice to check a simple shader using "beginInvocationInterlockARB() and endInvocationInterlockARB() that delimit a critical section of fragment shader code" how it affects assembly code..
unfortunately as I have a Skylake iGPU can't get use project to test this idea..
can you please check if Haxwell supports disassembly and providing dissassembly of a simple fragment shader like this one from G-truc:
(and then commeting the begin() end() functions and comparing assembly)
#version 430 core
#extension GL_INTEL_fragment_shader_ordering : enable
#define DIFFUSE 0
precision highp float;
precision highp int;
layout(std140, column_major) uniform;
in vec4 gl_FragCoord;
in block
{
vec2 Texcoord;
} In;
layout(binding = DIFFUSE) uniform sampler2D Diffuse;
layout(binding = 0, rgba8) uniform coherent image2D Attachment;
void main()
{
beginFragmentShaderOrderingINTEL();
vec4 FramebufferColor = imageLoad(Attachment, ivec2(gl_FragCoord.xy));
vec4 TextureColor = texture(Diffuse, In.Texcoord.st);
imageStore(Attachment, ivec2(gl_FragCoord.xy), TextureColor * 0.75 + FramebufferColor * 0.25);
endFragmentShaderOrderingINTEL();
}
thanks..
Hi,
now that Intel ShaderAnalyzer is released, in case it added suppor for OpenGL ISA dumps this project could use it for easier extraction and using IGA could be used for assembling even graphic shaders not only compute.. any plans to enhance it..
I opened request for OpenGL Vulkan support on IntelShaderAnalyzer
GameTechDev/IntelShaderAnalyzer#1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.