Comments (6)
Wouldn't it be useful to move the block header instructions (reset of uniform stream, ...) to these delay slots. For the uniform stream, you have to wait 3 cycles anyway. So the delay slots would be a good place to do it.
Then coming from the preceding block would not reload the uniform address.
Obviously, this would make the kernel Validation/uniform address step a little more complicated.
from mesa.
That would mean that the one doing the branch would need to calculate the uniforms offset of where it's branching to (on either side), rather than using the load immediates like we do today. That seems worse.
from mesa.
Yes, you would need to calculate the offset. But for a given branch, it should be a fixed offset (we don't do branches to dynamic computed targets right now, don't we?).
So it would change from
Branch xxx
nop
nop
nop
xxx:
Load Imm Offset
Reset Uniform
...
To
Branch xxx
Load Imm Offset
Reset uniform
nop
xxx:
...
More specifically, you could substitute the Load Imm with a Uniform read, saving one cycle (MOV UNIFORM ADDR, uni).
And if you issue the Uniform Reset in the last slot, you should be save moving the branch two instructions upwards filling the other nop slots (if there is no dependency (e.g. flag updates)).
Am 19. Juli 2016 19:30:56 MESZ, schrieb Eric Anholt [email protected]:
That would mean that the one doing the branch would need to calculate
the uniforms offset of where it's branching to (on either side), rather
than using the load immediates like we do today. That seems worse.
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#37 (comment)
from mesa.
Of course you would need to make the MOV having the same condition flag set like the branch (if you branch, reset, if not, don't).
Ahh, this is the problem, there is no (fast) way to do this across the SIMD. You only have the flags for one element.
So yeah, it wont work. Forget it.
from mesa.
Did some work on this here: jonasarrow/mesa_freedesktop@500b615
I didn't find a program fragment which yields a shader in which the branch is not the last dependency, so untested. But in the cases of no improvement, it works.
from mesa.
Oh, this issue was still open. The code landed a while ago.
from mesa.
Related Issues (20)
- Kivy apps crash - need mesa version to fix HOT 4
- Full KMS - #Kivy with Mesa HOT 3
- vc4: automatic S3TC->ETC1 conversion when loading textures? HOT 1
- Unable to compile mesa even when LLVM is set to 3.9.1 HOT 1
- VC4: Possible vertex shader problem HOT 7
- No screen update after hitting CMA limit
- May I ask why VC4 isn't documented in doc/features.txt? HOT 2
- [CRITICAL] Failed to compile shader on falltergeist HOT 2
- Add half-float texturing and rendering HOT 2
- Raspbian stretch, libdrm and mesa, kivy HOT 2
- mesa 18.3.1 segfault while starting gnome-shell or weston HOT 4
- drmGetDevice2 problem HOT 4
- Some precaching textures issues on mesa 19 HOT 19
- GL_PROGRAM_ERROR_STRING_ARB
- Compiling mesa3d for v3d vc5 broadcom gpu HOT 3
- si_create_blend_state_mode: Assertion `!"Unsupported equation HOT 1
- kmscube corrupted/flickering when texturing enabled HOT 2
- video playing issue
- Edid Data semms to be ignored
- Mesa without X11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mesa.