Kenneth Graunke
017b556609
iris: leave a TODO
před 6 roky
Chris Wilson
f459c56be6
iris: Add fence support using drm_syncobj
před 7 roky
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.
před 7 roky
Kenneth Graunke
d69bc4ac12
iris: Hang on to the last batch's sync-point, so we can wait on it
před 6 roky
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...)
před 7 roky
Kenneth Graunke
3e332af611
iris: Drop vestiges of throttling code
před 6 roky
Chris Wilson
54347c078e
iris: Merge two walks of the exec_bos list
před 6 roky
Kenneth Graunke
3455f57575
iris: replace vestiges of fence fds with newer exec_fence API
patch by me and Chris Wilson
před 7 roky
Kenneth Graunke
11da219be9
iris: Avoid synchronizing due to the workaround BO
před 6 roky
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.
před 6 roky
Kenneth Graunke
b21e916a62
iris: Combine iris_use_pinned_bo and add_exec_bo
před 6 roky
Kenneth Graunke
fb4c898842
iris: Use iris_use_pinned_bo rather than add_exec_bo directly
less special this way
před 6 roky
Chris Wilson
e5528151a7
iris: Fix assigning the output handle for exporting for KMS
Fixes gbm_bo_get_handle() used for KMS in glamor.
před 7 roky
Chris Wilson
01e729f883
iris: Tidy exporting the flink handle
před 7 roky
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.
před 6 roky
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
před 7 roky
Jason Ekstrand
a90a0e22cb
iris: Configure the L3$ on the compute context
před 7 roky
Kenneth Graunke
25a41b1aef
iris: properly pin stencil buffers
před 6 roky
Kenneth Graunke
8545e39808
iris: Fix TCS/TES slot unification
TCS outputs, TES inputs...not TCS inputs
Fixes some barrier tests
před 7 roky
Kenneth Graunke
da5590496e
iris: more todo notes
před 7 roky
Kenneth Graunke
9878ea842f
iris: scissored and mirrored blits
před 7 roky
Kenneth Graunke
25f194d5ac
iris: more TODO
před 7 roky
Kenneth Graunke
5207a5f5d5
iris: Fix independent alpha blending.
independent_blend_enable means per-RT blending, not RGB != A
před 7 roky
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.
před 7 roky
Kenneth Graunke
b2c04aa3a0
iris: Fix SourceAlphaBlendFactor
před 7 roky
Kenneth Graunke
89833eddab
iris: leave another TODO
před 7 roky
Kenneth Graunke
983e2ae7d2
iris: only clip lower if there's something to clip against
před 7 roky
Kenneth Graunke
e11c497fc6
iris: fix sysval only binding tables
před 7 roky
Kenneth Graunke
2ddbc1025e
iris: don't forget to upload CS consts
před 7 roky
Kenneth Graunke
f1f84a1ae7
iris: drop param stuffs
před 7 roky
Kenneth Graunke
1b5d35319e
iris: don't trip on param asserts
I'd rather not rewrite i965's compute system value handling right now :(
před 7 roky
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
před 7 roky
Kenneth Graunke
911f9e8f3f
iris: regather info so we get CLIP_DIST slots, not CLIP_VERTEX
před 7 roky
Kenneth Graunke
6d19fe376d
iris: enable push constants if we have sysvals but no uniforms
před 7 roky
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.
před 7 roky
Kenneth Graunke
7eeb124c02
iris: fix more uniform setup
před 7 roky
Kenneth Graunke
50743eb748
iris: fix num clip plane consts
před 7 roky
Kenneth Graunke
a98634a28f
iris: actually upload clip planes.
před 7 roky
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
před 7 roky
Kenneth Graunke
78fc760bab
iris: dodge backend UCP lowering
před 7 roky
Kenneth Graunke
deb6d588a6
iris: fix system value remapping
před 7 roky
Kenneth Graunke
2b0a2915dc
iris: hook up key stuff for clip plane lowering
před 7 roky
Kenneth Graunke
2876dd1a37
iris: lower user clip planes
před 7 roky
Kenneth Graunke
80c856cbee
iris: only bother with params if there are any...
před 7 roky
Kenneth Graunke
2186d83185
iris: fill out params array with built-ins, like clip planes
před 7 roky
Kenneth Graunke
d3e8ff143d
iris: add param domain defines
před 7 roky
Kenneth Graunke
ecb28b2802
iris: drop unnecessary param[] setup from iris_setup_uniforms
the backend just considers these dead anyway
před 7 roky
Kenneth Graunke
ed08f022f0
iris: Defer cbuf0 upload to draw time
před 7 roky
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.
před 7 roky
Kenneth Graunke
587e438128
iris: Print the batch name when decoding
před 7 roky