Kenneth Graunke
8c54433275
iris: Handle batch submission failure "better"
...
We used to not reset the batch, and just keep appending to it, so you'd
get the same invalid contents over and over.
I'd also really like to know about this, so aborting seems wise for now,
if not for the long term
2019-02-21 10:26:07 -08:00
Kenneth Graunke
d0b55ca782
iris: don't always flush
2019-02-21 10:26:07 -08:00
Kenneth Graunke
9226ebfa85
iris: print second batch size separately
2019-02-21 10:26:07 -08:00
Kenneth Graunke
f12b079c0e
iris: actually init num_viewports
...
fixes regressions
2019-02-21 10:26:07 -08:00
Kenneth Graunke
81f899c148
iris: scissor count fixes
2019-02-21 10:26:07 -08:00
Kenneth Graunke
92d6a70853
iris: fix VP iteration
2019-02-21 10:26:07 -08:00
Kenneth Graunke
4a94628513
iris: fix num viewports to be based on programs
2019-02-21 10:26:07 -08:00
Kenneth Graunke
b17215800c
iris: fix viewport counts and settings
...
seeing
set_viewport_state 0 1
set_viewport_state 1 15
which gives us a total of 16 viewports, updated incrementally
so keep old values around and update them...
2019-02-21 10:26:07 -08:00
Kenneth Graunke
636cf8971e
iris: max VP index
2019-02-21 10:26:07 -08:00
Kenneth Graunke
7cdc6b1173
iris: emit 3DSTATE_SBE_SWIZ
2019-02-21 10:26:07 -08:00
Kenneth Graunke
26db2ea782
iris: avoid crashing on unbound constant resources
...
instead, read from the workaround BO
2019-02-21 10:26:07 -08:00
Kenneth Graunke
a7770501a7
iris: fix caps so tests run again
2019-02-21 10:26:07 -08:00
Kenneth Graunke
a6aeca9727
iris: fix major refcounting bug with resources
...
DONTBLOCK -> NULL was happening after taking a reference, causing those
to live forever
This resolves the OOM problems
2019-02-21 10:26:07 -08:00
Kenneth Graunke
49f9c88801
iris: support signed vertex buffer offsets
2019-02-21 10:26:07 -08:00
Kenneth Graunke
0a43c9defa
iris: print refcounts in INTEL_DEBUG=submit
2019-02-21 10:26:07 -08:00
Kenneth Graunke
7d1e6f1fa1
iris: redo VB CSO a bit
2019-02-21 10:26:07 -08:00
Kenneth Graunke
432790bacd
iris: print binder utilization in INTEL_DEBUG=submit
2019-02-21 10:26:07 -08:00
Kenneth Graunke
f8179dc760
iris: clean up some warnings so I can see through the noise
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5f3a7ee701
iris: use pipe resources not direct BOs
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5619c15ecc
iris: indentation
2019-02-21 10:26:07 -08:00
Kenneth Graunke
27d45eb2f2
iris: don't leak keyboxes when searching for an existing program
2019-02-21 10:26:07 -08:00
Kenneth Graunke
7d504f3d52
iris: don't leak sampler state table resources
2019-02-21 10:26:07 -08:00
Kenneth Graunke
8e186cef2c
iris: rzalloc iris_compiled_shader so memcmp works even if padding creeps in
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5f722bf7c4
iris: remove 4 bytes of padding in iris_compiled_shader
2019-02-21 10:26:07 -08:00
Kenneth Graunke
0db86016f7
iris: pc fixes
2019-02-21 10:26:07 -08:00
Kenneth Graunke
f9f8ea7070
iris: more leak fixes
2019-02-21 10:26:07 -08:00
Kenneth Graunke
c763ecaa65
iris: plug leaks
2019-02-21 10:26:07 -08:00
Kenneth Graunke
477ea6c39a
iris: clear dirty
2019-02-21 10:26:07 -08:00
Kenneth Graunke
23987df412
iris: some dirty fixes
...
two scissor bits, constants not being flagged, ZeroRTA, clip not being
flagged
2019-02-21 10:26:07 -08:00
Kenneth Graunke
ccf37c7da9
iris: bindings dirty tracking
2019-02-21 10:26:07 -08:00
Kenneth Graunke
bbc6d15b59
iris: flag DIRTY_WM properly
2019-02-21 10:26:06 -08:00
Kenneth Graunke
3f863cf680
iris: fix the validation list on new batches
2019-02-21 10:26:06 -08:00
Kenneth Graunke
80dee31846
iris: save pointers to streamed state resources
...
will be used for cross-batch validation list fixing
2019-02-21 10:26:06 -08:00
Kenneth Graunke
daceb04bc0
iris: put back the always flush - fixes some things :(
2019-02-21 10:26:06 -08:00
Kenneth Graunke
149408a360
iris: untested SAMPLER_STATE pin BO fix
2019-02-21 10:26:06 -08:00
Kenneth Graunke
de782e5b39
iris: delete some pointless STATIC_ASSERTS
...
these were useful when I was patching relocs
2019-02-21 10:26:06 -08:00
Kenneth Graunke
3eebea88dc
iris: untested index buffer upload
2019-02-21 10:26:06 -08:00
Kenneth Graunke
9247546181
iris: state cleaning
2019-02-21 10:26:06 -08:00
Kenneth Graunke
7c40cdc12f
iris: comment about reemitting and flushing
2019-02-21 10:26:06 -08:00
Kenneth Graunke
d46c5b7c6c
iris: allow mapped buffers during execution (faster)
2019-02-21 10:26:06 -08:00
Kenneth Graunke
92de0f5aa6
iris: disable __gen_validate_value in release mode
2019-02-21 10:26:06 -08:00
Kenneth Graunke
08d1f13818
iris: drop assert for now
2019-02-21 10:26:06 -08:00
Kenneth Graunke
a9e357caac
iris: fix release builds
2019-02-21 10:26:06 -08:00
Kenneth Graunke
73f3c2cad0
iris: better VFI
2019-02-21 10:26:06 -08:00
Chris Wilson
2cbd42cddd
iris: IndexFormat = size/2
...
brw uses:
IndexFormat = index_size >> 1
anv uses:
IndexFromat = index_type[index_size]
2019-02-21 10:26:06 -08:00
Kenneth Graunke
5dcf62bb43
iris: use u_transfer helpers for now
2019-02-21 10:26:06 -08:00
Kenneth Graunke
48dc8bd4b0
iris: fix pull bufs that aren't the first user upload
2019-02-21 10:26:06 -08:00
Kenneth Graunke
eed7f7253e
iris: fill out pull constant buffers
2019-02-21 10:26:06 -08:00
Kenneth Graunke
90046b43cc
iris: make surface states for cbufs
2019-02-21 10:26:06 -08:00
Kenneth Graunke
4e007dbb30
iris: have more than one const_offset
2019-02-21 10:26:06 -08:00