Kenneth Graunke
754d678b0a
iris: Add _MI_ALU helpers that don't paste
...
This lets you pass arguments as function parameters
2019-02-21 10:26:10 -08:00
Kenneth Graunke
5094062bbe
iris: Reorder LRR parameters to have dst first.
...
LRI and LRM both put dst first, be consistent.
2019-02-21 10:26:10 -08:00
Kenneth Graunke
5f511798d0
iris: Fix primitive generated query active flag
2019-02-21 10:26:10 -08:00
Kenneth Graunke
bd031eb2e8
iris: reject all clipping when we can't use streamout render disabled
2019-02-21 10:26:10 -08:00
Kenneth Graunke
761a5fb36a
iris: fix conditional compute, don't stomp predicate for pipelined queries
2019-02-21 10:26:10 -08:00
Kenneth Graunke
40b12c103c
iris: check query first
...
this lets us avoid the predicate bit in more cases, which is nice
2019-02-21 10:26:10 -08:00
Dave Airlie
7bbf3ff4a9
iris: add conditional render support
2019-02-21 10:26:10 -08:00
Dave Airlie
311a1b3198
iris: execute compute related query on compute batch.
...
This only happens for the compute invocations query.
2019-02-21 10:26:10 -08:00
Kenneth Graunke
39d1056d10
iris: fix some SO overflow query bugs and tidy the code a bit
2019-02-21 10:26:10 -08:00
Dave Airlie
527e5bcdc7
iris: add initial transform feedback overflow query paths (V3)
...
v2: fix cpu overflow calc
v3: use a struct
2019-02-21 10:26:10 -08:00
Kenneth Graunke
d169747a3e
iris: Track a binding history for buffer resources
...
This will let us know what caches to flush / state to dirty when
altering the contents of a buffer.
2019-02-21 10:26:10 -08:00
Kenneth Graunke
f1a7392be1
iris: Put batches in an array
...
We keep re-making this array all over the place
2019-02-21 10:26:10 -08:00
Kenneth Graunke
2727a942a4
iris: partial set_query_active_state
...
used to avoid OQ during clears for example
fixes occlusion_query_meta_no_fragments
2019-02-21 10:26:09 -08:00
Kenneth Graunke
938d63b2e8
iris: Move snapshots_landed to the front.
...
Transform feedback overflow queries need to write additional data,
and it would be nice to have this field remain at a consistent offset.
2019-02-21 10:26:09 -08:00
Kenneth Graunke
c6016d3761
iris: just mark snapshots_landed from the CPU
...
otherwise, get results may check q->map->snapshots_landed...before our
commands to initialize it to false have actually executed...so it'd get
some random garbage from the BO...
2019-02-21 10:26:09 -08:00
Kenneth Graunke
0395eba20f
iris: magic number 36 -> #define
2019-02-21 10:26:08 -08:00
Kenneth Graunke
57f8a623c5
iris: better query file comment
2019-02-21 10:26:08 -08:00
Kenneth Graunke
d3a5d87219
iris: early return properly
2019-02-21 10:26:08 -08:00
Kenneth Graunke
07ff8c752f
iris: 36-bit overflow fixes
2019-02-21 10:26:08 -08:00
Kenneth Graunke
1d91eba7dc
iris: glGet timestamps, more correct timestamps
2019-02-21 10:26:08 -08:00
Kenneth Graunke
36fbcfb06c
iris: ...and SO prims emitted queries
...
looks like we have queries
some fails still due to races between snapshots_written and start/end
not being garbage...not sure what that's about
2019-02-21 10:26:08 -08:00
Kenneth Graunke
ec82be57e8
iris: timestamps
2019-02-21 10:26:08 -08:00
Kenneth Graunke
23572cdd07
iris: drop explicit pinning
...
writes will already rw_bo or ro_bo that
2019-02-21 10:26:08 -08:00
Kenneth Graunke
d8875fe406
iris: primitives generated query support
2019-02-21 10:26:08 -08:00
Kenneth Graunke
ffae6e3105
iris: pipeline stats
2019-02-21 10:26:08 -08:00
Kenneth Graunke
7840d0e091
iris: play chicken with timer queries for now
...
they have been crashy in the past and I don't want to risk tanking my
laptop right before my XDC talk
2019-02-21 10:26:08 -08:00
Kenneth Graunke
0b095c665d
iris: gpr0 to bool
...
I think OQ is basically working now.
2019-02-21 10:26:08 -08:00
Kenneth Graunke
f5a8908bd1
iris: fix random failures via CS stall...but why?
2019-02-21 10:26:08 -08:00
Kenneth Graunke
ad14795805
iris: flush batch when asking for result via QBO
2019-02-21 10:26:08 -08:00
Kenneth Graunke
cf261caad9
iris: results write
2019-02-21 10:26:08 -08:00
Kenneth Graunke
d4e4517569
iris: gen10+ workarounds and break fix
2019-02-21 10:26:08 -08:00
Kenneth Graunke
dca5632de1
iris: initial query code
2019-02-21 10:26:08 -08:00
Kenneth Graunke
42dccb1233
iris: use consistent copyright formatting
...
some of them had typos, didn't say 'authors or copyright holders',
or other mistakes. This is now https://opensource.org/licenses/MIT
text, formatted consistently.
2019-02-21 10:26:08 -08:00
Kenneth Graunke
dfe1ee4f6f
iris: comment everything
...
1. Write the code
2. Add comments
3. PROFIT (or just avoid cost of explaining or relearning things...)
2019-02-21 10:26:08 -08:00
Kenneth Graunke
e6b1cc2106
iris: save query type
2019-02-21 10:26:07 -08:00
Kenneth Graunke
9ca58ca517
iris: delete iris_pipe.c, shuffle code around
2019-02-21 10:26:05 -08:00