Kenneth Graunke
017b556609
iris: leave a TODO
6 years ago
Chris Wilson
f459c56be6
iris: Add fence support using drm_syncobj
7 years ago
Kenneth Graunke
db199d9d07
iris: Add wait fences to properly sync between render/compute
When flushing a batch due to a data dependency, we need to not only
kick off the other batch's work, but stall our execution until it
completes. Just wait on last_syncpt after flushing it.
7 years ago
Kenneth Graunke
d69bc4ac12
iris: Hang on to the last batch's sync-point, so we can wait on it
6 years ago
Chris Wilson
fae74234d9
iris: Tag each submitted batch with a syncobj
(adjusted by Ken to make the signalling sync object immediately on
batch reset, rather than batch finish time. this will work better
with deferred flushes...)
7 years ago
Kenneth Graunke
3e332af611
iris: Drop vestiges of throttling code
6 years ago
Chris Wilson
54347c078e
iris: Merge two walks of the exec_bos list
6 years ago
Kenneth Graunke
3455f57575
iris: replace vestiges of fence fds with newer exec_fence API
patch by me and Chris Wilson
7 years ago
Kenneth Graunke
11da219be9
iris: Avoid synchronizing due to the workaround BO
6 years ago
Kenneth Graunke
30d7bebc8a
iris: Avoid cross-batch synchronization on read/reads
This avoids flushing batches just because e.g. both are reading the same
dynamic state streaming buffer, or shader assembly buffer.
6 years ago
Kenneth Graunke
b21e916a62
iris: Combine iris_use_pinned_bo and add_exec_bo
6 years ago
Kenneth Graunke
fb4c898842
iris: Use iris_use_pinned_bo rather than add_exec_bo directly
less special this way
6 years ago
Chris Wilson
e5528151a7
iris: Fix assigning the output handle for exporting for KMS
Fixes gbm_bo_get_handle() used for KMS in glamor.
7 years ago
Chris Wilson
01e729f883
iris: Tidy exporting the flink handle
7 years ago
Kenneth Graunke
1b69b14c2a
iris: Fix SLM
Now that Jason has set up the L3 we can do this. Also, my assert was
useless because we hadn't set up the field in the first place. Oops.
6 years ago
Jason Ekstrand
f9c5e277ac
iris: Don't set constant read lengths at upload time
They're set in derived_data as part of store_cs_state
7 years ago
Jason Ekstrand
a90a0e22cb
iris: Configure the L3$ on the compute context
7 years ago
Kenneth Graunke
25a41b1aef
iris: properly pin stencil buffers
6 years ago
Kenneth Graunke
8545e39808
iris: Fix TCS/TES slot unification
TCS outputs, TES inputs...not TCS inputs
Fixes some barrier tests
6 years ago
Kenneth Graunke
da5590496e
iris: more todo notes
6 years ago
Kenneth Graunke
9878ea842f
iris: scissored and mirrored blits
7 years ago
Kenneth Graunke
25f194d5ac
iris: more TODO
7 years ago
Kenneth Graunke
5207a5f5d5
iris: Fix independent alpha blending.
independent_blend_enable means per-RT blending, not RGB != A
7 years ago
Kenneth Graunke
c06f6d12a5
iris: "Fix" transfer maps of buffers
x should be in bytes, not cpp units
This generally worked out because PIPE_BUFFER is supposedly required
to be R8_UINT or R8_UNORM. I hear some state trackers pass
PIPE_FORMAT_NONE instead, however, which would make this break.
Just do the right thing directly, to be defensive and clear.
7 years ago
Kenneth Graunke
b2c04aa3a0
iris: Fix SourceAlphaBlendFactor
7 years ago
Kenneth Graunke
89833eddab
iris: leave another TODO
7 years ago
Kenneth Graunke
983e2ae7d2
iris: only clip lower if there's something to clip against
7 years ago
Kenneth Graunke
e11c497fc6
iris: fix sysval only binding tables
7 years ago
Kenneth Graunke
2ddbc1025e
iris: don't forget to upload CS consts
7 years ago
Kenneth Graunke
f1f84a1ae7
iris: drop param stuffs
7 years ago
Kenneth Graunke
1b5d35319e
iris: don't trip on param asserts
I'd rather not rewrite i965's compute system value handling right now :(
7 years ago
Kenneth Graunke
f4829a2fe1
iris: don't support pull constants.
I don't think it matters, we won't have any params anyway, but let's
be sure it doesn't try
7 years ago
Kenneth Graunke
911f9e8f3f
iris: regather info so we get CLIP_DIST slots, not CLIP_VERTEX
7 years ago
Kenneth Graunke
6d19fe376d
iris: enable push constants if we have sysvals but no uniforms
7 years ago
Kenneth Graunke
1ef68d77c0
iris: drop iris_setup_push_uniform_range
it doesn't do anything, we have no params. I guess I thought there
would be some, but they all get dead code eliminated even if we try
to make them exist in the first place.
7 years ago
Kenneth Graunke
7eeb124c02
iris: fix more uniform setup
7 years ago
Kenneth Graunke
50743eb748
iris: fix num clip plane consts
7 years ago
Kenneth Graunke
a98634a28f
iris: actually upload clip planes.
7 years ago
Kenneth Graunke
c60ce3f4fd
iris: bypass params and do it ourselves
the backend keeps dead code eliminating them all, so we can't do that,
plus we don't want to because params[] is lame
7 years ago
Kenneth Graunke
78fc760bab
iris: dodge backend UCP lowering
7 years ago
Kenneth Graunke
deb6d588a6
iris: fix system value remapping
7 years ago
Kenneth Graunke
2b0a2915dc
iris: hook up key stuff for clip plane lowering
7 years ago
Kenneth Graunke
2876dd1a37
iris: lower user clip planes
7 years ago
Kenneth Graunke
80c856cbee
iris: only bother with params if there are any...
7 years ago
Kenneth Graunke
2186d83185
iris: fill out params array with built-ins, like clip planes
7 years ago
Kenneth Graunke
d3e8ff143d
iris: add param domain defines
7 years ago
Kenneth Graunke
ecb28b2802
iris: drop unnecessary param[] setup from iris_setup_uniforms
the backend just considers these dead anyway
7 years ago
Kenneth Graunke
ed08f022f0
iris: Defer cbuf0 upload to draw time
7 years ago
Kenneth Graunke
e98cf9c24b
iris: Clone the NIR
The backend compiler used to do this for us, but after a rebase, it's
now the driver's responsibility. This lets us alter it for say, clip
vertex lowering, at the global level rather than the per-variant level.
7 years ago
Kenneth Graunke
587e438128
iris: Print the batch name when decoding
7 years ago