Kenneth Graunke
07ec1f0b25
iris: Make an IRIS_MAX_MIPLEVELS define
2019-02-21 10:26:12 -08:00
Kenneth Graunke
8ab82bd1fd
iris: Drop XXX about checking for swizzling
...
Caio noted that this is not necessary on Gen8+:
"Before Gen8, there was a historical configuration control field to
swizzle address bit[6] for in X/Y tiling modes. This was set in
three different places: TILECTL[1:0], ARB_MODE[5:4], and
DISP_ARB_CTL[14:13]. For Gen8 and subsequent generations, the
swizzle fields are all reserved, and the CPU's memory controller
performs all address swizzling modifications."
Since we don't support earlier hardware, we can skip it entirely.
2019-02-21 10:26:12 -08:00
Andre Heider
bffb65d28e
iris: improve PIPE_CAP_VIDEO_MEMORY bogus value
...
-1 is a little too bogus for most games ;)
Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-02-21 10:26:12 -08:00
Kenneth Graunke
be49fb051d
iris: Stop chopping off the first nine characters of the renderer string
2019-02-21 10:26:12 -08:00
Kenneth Graunke
974229df46
iris: Add PIPE_CAP_MAX_VARYINGS
2019-02-21 10:26:11 -08:00
Kenneth Graunke
4bfd12bbf7
iris: minor tidying
2019-02-21 10:26:11 -08:00
Kenneth Graunke
edd3ce5a63
iris: Enable PIPE_CAP_COMPACT_ARRAYS
2019-02-21 10:26:11 -08:00
Kenneth Graunke
e17333ea1e
iris: fail to create screen for older unsupported HW
...
loader shouldn't try, but let's be paranoid
2019-02-21 10:26:11 -08:00
Kenneth Graunke
1f91f688e8
iris: Switch to the new PIPELINE_STATISTICS_QUERY_SINGLE capability
...
I had a hack in place earlier to pass the query type as q->index
for the regular statistics query, but we ended up adjusting the
interface and adding a new query type. Use that instead, fixing
pipeline statistics queries since the rebase.
2019-02-21 10:26:11 -08:00
Dave Airlie
8806b29e16
iris: setup gen8 caps
2019-02-21 10:26:11 -08:00
Kenneth Graunke
68d531d7d7
iris: Destroy the bufmgr
...
Plugs a 12360 byte leak
2019-02-21 10:26:10 -08:00
Kenneth Graunke
3d55e9a2aa
iris: Destroy transfer helper on screen teardown
...
Plugs a 16 byte leak
2019-02-21 10:26:10 -08:00
Kenneth Graunke
855ff47d36
iris: Enable precompiles
2019-02-21 10:26:10 -08:00
Kenneth Graunke
beb2d5e065
iris: Lie about indirects
...
fixes interpolateAt tests
2019-02-21 10:26:10 -08:00
Kenneth Graunke
b9ccb00e2c
iris: Enable ctx->Const.UseSTD430AsDefaultPacking
...
hooray for obscurely named pipe caps with bizarre descriptions!
2019-02-21 10:26:10 -08:00
Chris Wilson
f459c56be6
iris: Add fence support using drm_syncobj
2019-02-21 10:26:10 -08:00
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...)
2019-02-21 10:26:10 -08:00
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
2019-02-21 10:26:10 -08:00
Kenneth Graunke
80497af192
iris: Enable ARB_shader_stencil_export
2019-02-21 10:26:09 -08:00
Kenneth Graunke
a9b32f2bbf
iris: Fix texture buffer / image buffer sizes.
...
Also fix image buffers with offsets.
2019-02-21 10:26:09 -08:00
Kenneth Graunke
9fc672428d
iris: little bits of compute basics
2019-02-21 10:26:09 -08:00
Kenneth Graunke
752abeb690
iris: initial compute caps
...
RET macro borrowed from freedreno
2019-02-21 10:26:09 -08:00
Kenneth Graunke
4da28c2c22
iris: Enable fb fetch
...
needed for ES 3.2
2019-02-21 10:26:09 -08:00
Kenneth Graunke
be905bd461
iris: advertise GL_ARB_shader_texture_image_samples
2019-02-21 10:26:09 -08:00
Kenneth Graunke
87351b8dfe
iris: force persample interp cap
2019-02-21 10:26:09 -08:00
Kenneth Graunke
90b9efc1f9
iris: stencil texturing
2019-02-21 10:26:09 -08:00
Kenneth Graunke
3c0ef22edb
iris: Enable ARB_shader_vote
...
The easiest get out the vote campaign ever
2019-02-21 10:26:08 -08:00
Kenneth Graunke
0395eba20f
iris: magic number 36 -> #define
2019-02-21 10:26:08 -08:00
Kenneth Graunke
dff174c103
iris: Need to | 1 when asking for timestamps
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
dca5632de1
iris: initial query code
2019-02-21 10:26:08 -08:00
Caio Marcelo de Oliveira Filho
fb4a3e2736
iris: Fix uses of gl_TessLevel*
...
The backend compiler expects the gl_TessLevel* variables to be mapped
as inputs instead of system values. Use the new PIPE_CAP to get this
behavior from GLSL compiler.
Tested with:
tests/spec/arb_tessellation_shader/execution/vs-tcs-tes-tessinner-tessouter-inputs-quads.shader_test
2019-02-21 10:26:08 -08:00
Kenneth Graunke
2b956a093a
iris: totally untested icelake support
2019-02-21 10:26:08 -08:00
Kenneth Graunke
2d1db44e8e
iris: enable ARB_enhanced_layouts
2019-02-21 10:26:08 -08:00
Kenneth Graunke
2ebce6f8c8
iris: use Eric's new caps helper
...
this does change a couple caps...PRIMITIVE_RESTART_FOR_PATCHES...
2019-02-21 10:26:08 -08:00
Kenneth Graunke
3e7a41f228
iris: new caps
2019-02-21 10:26:08 -08:00
Chris Wilson
d209cc5170
iris: AMD_pinned_memory
...
(rebased by Ken, mainly set res->internal_format)
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
ee8cb7e0ee
iris: implement ARB_clear_texture
2019-02-21 10:26:08 -08:00
Kenneth Graunke
906becec70
iris: we can do multisample Z resolves
2019-02-21 10:26:08 -08:00
Kenneth Graunke
1f156f004b
iris: deal with Marek's new MSAA caps
...
storage sample count is equal to sample count for us, for now,
so 0 the pipe cap and ignore the new parameter
2019-02-21 10:26:08 -08:00
Kenneth Graunke
763f9095ea
iris: fill out more caps
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
682aeff8d0
iris: we don't support textureGatherOffsets, need it lowered
2019-02-21 10:26:08 -08:00
Kenneth Graunke
834b97c34b
iris: fix GS output component limit
...
this is total, so should be 1024, not 128
2019-02-21 10:26:08 -08:00
Kenneth Graunke
8da91ebb68
iris: enable texture gather
2019-02-21 10:26:08 -08:00
Kenneth Graunke
b7b061c4e2
iris: fix SSBO indexing
...
st/nir offsets SSBO indexes by MaxABOs. This is not what we want,
as it bloats the binding tables. We'll need to adjust it to use
info->num_abos as the offset and buffer base instead. For now,
just use the inefficient format to get us rolling. We can add a
PIPE_CAP later.
2019-02-21 10:26:07 -08:00
Kenneth Graunke
376c7253f8
iris: enable SSBOs
2019-02-21 10:26:07 -08:00
Kenneth Graunke
75709d982b
iris: fix TBO alignment to match 965
2019-02-21 10:26:07 -08:00
Kenneth Graunke
2c73d7e3f1
iris: expose more things that we already support
2019-02-21 10:26:07 -08:00