Kenneth Graunke
f20fc950a7
iris: fix depth bounds clamp enables
...
fixes depthrange-clear among others
2019-02-21 10:26:07 -08:00
Kenneth Graunke
eb274a31bc
iris: fix clip flagging on fb changes
2019-02-21 10:26:07 -08:00
Kenneth Graunke
c0ab9c9890
iris: actually set cube bit properly
2019-02-21 10:26:07 -08:00
Kenneth Graunke
8a080223e6
iris: just malloc one iris_genx_state instead of a bunch of oddball pieces
...
Things that are gen-specific can go in iris_genx_state. Things that are
gen-agnostic can go directly in ice->state.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
ccec5bab5b
iris: implement border color, fix other sampler nonsense
2019-02-21 10:26:07 -08:00
Kenneth Graunke
1cea195a95
iris: state ref tuple
2019-02-21 10:26:07 -08:00
Kenneth Graunke
c0e80a8d0a
iris: null surface for unbound textures
...
avoids crashes...may not be really right
2019-02-21 10:26:07 -08:00
Kenneth Graunke
470fb01a7a
iris: fix GS dispatch mode
2019-02-21 10:26:07 -08:00
Kenneth Graunke
01483c7933
iris: fix 3DSTATE_VERTEX_ELEMENTS / VF_INSTANCING for 0 elements
2019-02-21 10:26:07 -08:00
Kenneth Graunke
4c9067ae1d
iris: don't emit garbage 3DSTATE_VERTEX_BUFFERS when there aren't any
2019-02-21 10:26:07 -08:00
Kenneth Graunke
d207f97840
iris: larger polygon offset
2019-02-21 10:26:07 -08:00
Kenneth Graunke
5188e54e97
iris: fix provoking vertex ordering
...
had this backwards
2019-02-21 10:26:07 -08:00
Kenneth Graunke
e0f3971280
iris: lightmodel flat
2019-02-21 10:26:07 -08:00
Kenneth Graunke
b7cd3a083a
iris: rework DEBUG_REEMIT
...
don't want to have to special case this everywhere
2019-02-21 10:26:07 -08:00
Kenneth Graunke
72416a2d0d
iris: clears
2019-02-21 10:26:07 -08:00
Kenneth Graunke
234cf647a4
iris: tidy comments about mirroring modes
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
7d1e6f1fa1
iris: redo VB CSO a bit
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
7d504f3d52
iris: don't leak sampler state table resources
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
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
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
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
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
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
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
Kenneth Graunke
9ea05ccf1f
iris: completely rewrite binder
...
now we get a new one per batch, and flush if it fills up
2019-02-21 10:26:06 -08:00
Kenneth Graunke
26cc609927
iris: better ubo handling
2019-02-21 10:26:06 -08:00
Kenneth Graunke
badefe50a0
iris: fix constant packet length to match i965
2019-02-21 10:26:06 -08:00
Kenneth Graunke
7437c28c0d
iris: util_copy_framebuffer_state (ported from Rob's v3d patches)
2019-02-21 10:26:06 -08:00