Kenneth Graunke
5165308169
iris: don't crash on shader perf logs
2019-02-21 10:26:07 -08:00
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
0232fbc2c4
iris: comment out l/a/i/la
...
in hopes of r/rg fallbacks
2019-02-21 10:26:07 -08:00
Kenneth Graunke
cf34dd7a61
iris: actually handle array layers in blits
2019-02-21 10:26:07 -08:00
Kenneth Graunke
33a17d566f
iris: keep DISCARD_RANGE
...
this isn't really an iris_bo_map flag, but the various resource mappers
want to check for it to avoid making temp copies.
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
d849501f4c
iris: rename map->stride
2019-02-21 10:26:07 -08:00
Kenneth Graunke
36301bbe40
iris: fix zoffset asserts with 2DArray/Cube
2019-02-21 10:26:07 -08:00
Kenneth Graunke
7f39f4843f
iris: SBE change stash
...
not used yet, but want to flag it so I don't forget
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
a7e0edffb6
iris: dead pointer
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
8a16249285
iris: border color memory zone :(
...
They took away our pointer bits, so now we need a pile of special code
to handle this instead of just using u_upload_mgr. :(
2019-02-21 10:26:07 -08:00
Kenneth Graunke
1c19e3b21f
iris: don't include binder in surface VMA range
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
d358a4a040
iris: depth clears
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
adf0c20461
iris: geometry shader support
2019-02-21 10:26:07 -08:00
Kenneth Graunke
de08ac9b0f
iris: TES uniform fixes
...
not that we have a TES, but...
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
cbbd6a61c4
iris: maybe-flush before blorp operations
...
otherwise if we have a lot of back-to-back blorp operations we can
potentially overflow even the chained batch
2019-02-21 10:26:07 -08:00
Kenneth Graunke
e0f3971280
iris: lightmodel flat
2019-02-21 10:26:07 -08:00
Kenneth Graunke
4d04111bfb
iris: implement copy image
2019-02-21 10:26:07 -08:00
Kenneth Graunke
40fd2fd603
iris: fall back to u_generate_mipmap
...
It just does blits between layers, which is all we'd do anyway,
and it already should use BLORP because of iris_blit(). Plus it
handles 3D, which our code in i965 doesn't.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
6cf04c6ded
iris: clear fix
2019-02-21 10:26:07 -08:00
Kenneth Graunke
d416b81779
iris: shader dirty bits
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
eef0d33cee
iris: better boxing on maps
2019-02-21 10:26:07 -08:00
Kenneth Graunke
419fac2fc6
iris: fix fragcoord ytransform
...
the TGSI in the name is a misnomer, it actually controls wpos_ytransform
lowering in NIR these days.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
e67951227d
iris: Disable unsupported mirror clamp modes
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
a3a998f19a
iris: iris - fix QWord aligned endings after batch chaining rework
...
I need to save the primary batch size after expanding it to include
MI_BATCH_BUFFER_END and the QWord padding NOP
2019-02-21 10:26:07 -08:00
Kenneth Graunke
aacbcbbf47
iris: colorize batchbuffer failures to make them stand out
2019-02-21 10:26:07 -08:00
Kenneth Graunke
8e2b71b190
iris: bad inherited comments
2019-02-21 10:26:07 -08:00
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