mesa.git
5 years agoiris: actually upload clip planes.
Kenneth Graunke [Fri, 9 Nov 2018 10:11:16 +0000 (02:11 -0800)]
iris: actually upload clip planes.

5 years agoiris: bypass params and do it ourselves
Kenneth Graunke [Fri, 9 Nov 2018 10:04:23 +0000 (02:04 -0800)]
iris: bypass params and do it ourselves

the backend keeps dead code eliminating them all, so we can't do that,
plus we don't want to because params[] is lame

5 years agoiris: dodge backend UCP lowering
Kenneth Graunke [Fri, 9 Nov 2018 09:35:14 +0000 (01:35 -0800)]
iris: dodge backend UCP lowering

5 years agoiris: fix system value remapping
Kenneth Graunke [Fri, 9 Nov 2018 09:27:39 +0000 (01:27 -0800)]
iris: fix system value remapping

5 years agoiris: hook up key stuff for clip plane lowering
Kenneth Graunke [Sat, 27 Oct 2018 05:18:56 +0000 (22:18 -0700)]
iris: hook up key stuff for clip plane lowering

5 years agoiris: lower user clip planes
Kenneth Graunke [Fri, 9 Nov 2018 09:08:36 +0000 (01:08 -0800)]
iris: lower user clip planes

5 years agoiris: only bother with params if there are any...
Kenneth Graunke [Fri, 9 Nov 2018 08:51:58 +0000 (00:51 -0800)]
iris: only bother with params if there are any...

5 years agoiris: fill out params array with built-ins, like clip planes
Kenneth Graunke [Fri, 9 Nov 2018 08:41:36 +0000 (00:41 -0800)]
iris: fill out params array with built-ins, like clip planes

5 years agoiris: add param domain defines
Kenneth Graunke [Fri, 9 Nov 2018 07:19:53 +0000 (23:19 -0800)]
iris: add param domain defines

5 years agoiris: drop unnecessary param[] setup from iris_setup_uniforms
Kenneth Graunke [Fri, 9 Nov 2018 08:04:19 +0000 (00:04 -0800)]
iris: drop unnecessary param[] setup from iris_setup_uniforms

the backend just considers these dead anyway

5 years agoiris: Defer cbuf0 upload to draw time
Kenneth Graunke [Fri, 9 Nov 2018 07:10:46 +0000 (23:10 -0800)]
iris: Defer cbuf0 upload to draw time

5 years agoiris: Clone the NIR
Kenneth Graunke [Fri, 9 Nov 2018 05:48:37 +0000 (21:48 -0800)]
iris: Clone the NIR

The backend compiler used to do this for us, but after a rebase, it's
now the driver's responsibility.  This lets us alter it for say, clip
vertex lowering, at the global level rather than the per-variant level.

5 years agoiris: Print the batch name when decoding
Kenneth Graunke [Thu, 8 Nov 2018 23:32:59 +0000 (15:32 -0800)]
iris: Print the batch name when decoding

5 years agoiris: partial set_query_active_state
Kenneth Graunke [Thu, 8 Nov 2018 09:14:27 +0000 (01:14 -0800)]
iris: partial set_query_active_state

used to avoid OQ during clears for example

fixes occlusion_query_meta_no_fragments

5 years agoiris: Fix multiple RTs with non-independent blending
Kenneth Graunke [Thu, 8 Nov 2018 08:15:50 +0000 (00:15 -0800)]
iris: Fix multiple RTs with non-independent blending

rt[i] isn't filled out in this case, so we have to use rt[0]

5 years agoiris: Fix TextureBarrier
Kenneth Graunke [Thu, 8 Nov 2018 07:23:30 +0000 (23:23 -0800)]
iris: Fix TextureBarrier

I don't know how I came up with the old one, this is now what i965 does
Also we now do compute batches too

5 years agoiris: Fix MSAA smooth points
Kenneth Graunke [Thu, 8 Nov 2018 06:54:25 +0000 (22:54 -0800)]
iris: Fix MSAA smooth points

Fixes bin/ext_framebuffer_multisample-point-smooth 2 -auto -fbo

5 years agoiris: implement scratch space!
Kenneth Graunke [Thu, 8 Nov 2018 06:05:14 +0000 (22:05 -0800)]
iris: implement scratch space!

we borrow the approach from anv rather than i965, as it works better
with pre-baked state that needs to contain scratch BO addresses

fixes a bunch of varying packing tests

5 years agoiris: tidy more warnings
Kenneth Graunke [Thu, 8 Nov 2018 06:07:08 +0000 (22:07 -0800)]
iris: tidy more warnings

5 years agoiris: Enable msaa_map transfer helpers
Kenneth Graunke [Thu, 8 Nov 2018 05:06:49 +0000 (21:06 -0800)]
iris: Enable msaa_map transfer helpers

This does the downsampling for us.  It'll use BLORP anyway because
it uses blit(), and that uses BLORP.

5 years agoiris: Actually create/destroy HW contexts
Kenneth Graunke [Wed, 7 Nov 2018 17:35:19 +0000 (09:35 -0800)]
iris: Actually create/destroy HW contexts

The intention is that render and compute use their own contexts,
and each is PIPELINE_SELECT'd to the right pipeline.  But we hadn't
actually made them, so we got the fd-default context.

Thanks to Chris Wilson for catching this!

5 years agoiris: Don't leak the compute batch
Kenneth Graunke [Wed, 7 Nov 2018 17:56:37 +0000 (09:56 -0800)]
iris: Don't leak the compute batch

5 years agoiris: cross batch flushing
Kenneth Graunke [Wed, 7 Nov 2018 05:34:58 +0000 (21:34 -0800)]
iris: cross batch flushing

5 years agoiris: Cross-link iris_batches so they can potentially flush each other
Kenneth Graunke [Wed, 7 Nov 2018 05:12:30 +0000 (21:12 -0800)]
iris: Cross-link iris_batches so they can potentially flush each other

This makes e.g. the render batch aware of the compute batch, so it can
ask questions like "is this BO referenced by some other batch?" and do
something about that.

5 years agoiris: fix crash in sparse vertex array
Dave Airlie [Wed, 7 Nov 2018 01:49:04 +0000 (11:49 +1000)]
iris: fix crash in sparse vertex array

this fixes crash in array-stride piglit.

5 years agoiris: Use at least 1x1 size for null FB surface state.
Kenneth Graunke [Tue, 6 Nov 2018 07:16:14 +0000 (23:16 -0800)]
iris: Use at least 1x1 size for null FB surface state.

Otherwise we get 0 - 1 = 0xffffffff and fail to pack SURFACE_STATE.

Fixes some object namespace pollution gltexsubimage2d tests

5 years agoiris: Drop B5G5R5X1 support
Kenneth Graunke [Sun, 4 Nov 2018 23:20:23 +0000 (15:20 -0800)]
iris: Drop B5G5R5X1 support

This is oddly renderable but not supported for sampling, which is the
opposite of other X formats.  Just skip it and fall back to BGRA.

5 years agoiris: Enable A8/A16_UNORM in an inefficient manner
Kenneth Graunke [Sun, 4 Nov 2018 23:00:31 +0000 (15:00 -0800)]
iris: Enable A8/A16_UNORM in an inefficient manner

These are currently just use the 'A' hardware formats, rather than the
faster 'R' formats.  glBitmap handling needs these, it seems. :(

5 years agoiris: Enable ARB_shader_stencil_export
Kenneth Graunke [Sun, 4 Nov 2018 22:43:10 +0000 (14:43 -0800)]
iris: Enable ARB_shader_stencil_export

5 years agoiris: Disable a PIPE_CONTROL workaround on Icelake
Kenneth Graunke [Thu, 1 Nov 2018 23:11:31 +0000 (16:11 -0700)]
iris: Disable a PIPE_CONTROL workaround on Icelake

5 years agoiris: Flag constants dirty on program changes
Kenneth Graunke [Sat, 3 Nov 2018 13:44:48 +0000 (06:44 -0700)]
iris: Flag constants dirty on program changes

3DSTATE_CONSTANT_* looks at prog_data->ubo_ranges.  We were getting
saved by iris_set_constant_buffers() usually happening when changing
programs (as they usually change uniforms too), but with the clear
shader that doesn't use uniforms, we weren't getting one and were
leaving push constants enabled, screwing things up.

Also clean up a bit of a mess left by the hacks - we were missing
bindings in the VS/FS/CS case, among other issues...

5 years agoiris: allow binding a null vertex buffer
Kenneth Graunke [Fri, 2 Nov 2018 21:54:35 +0000 (14:54 -0700)]
iris: allow binding a null vertex buffer

PBO upload apparently does this...

5 years agoiris: fix overhead regression from "don't stomp each other's dirty bits"
Kenneth Graunke [Sat, 3 Nov 2018 14:24:54 +0000 (07:24 -0700)]
iris: fix overhead regression from "don't stomp each other's dirty bits"

The change from dirty = 0ull to dirty &= ~NOT_MY_BITS broke the "nothing
to do?  skip it!" optimization.  thanks to Chris for noticing this!

5 years agoiris: delete dead code
Kenneth Graunke [Sun, 28 Oct 2018 11:45:07 +0000 (04:45 -0700)]
iris: delete dead code

5 years agoiris: Fix refcounting of grid surface
Kenneth Graunke [Sat, 27 Oct 2018 05:43:34 +0000 (22:43 -0700)]
iris: Fix refcounting of grid surface

5 years agoiris/compute: Zero out the last grid size on indirect dispatches
Jason Ekstrand [Sat, 27 Oct 2018 03:22:04 +0000 (22:22 -0500)]
iris/compute: Zero out the last grid size on indirect dispatches

5 years agoiris/compute: Don't increment the grid size offset
Jason Ekstrand [Sat, 27 Oct 2018 03:18:41 +0000 (22:18 -0500)]
iris/compute: Don't increment the grid size offset

It may be in the dynamic state buffer but the fact that we have a
resource takes care of that.  We don't need to add in the address of
the dynamic state buffer again.

5 years agoiris: SO_DECL_LIST fix
Kenneth Graunke [Wed, 24 Oct 2018 21:45:00 +0000 (14:45 -0700)]
iris: SO_DECL_LIST fix

5 years agoiris: Fall back to 1x1x1 null surface if no framebuffer supplied
Kenneth Graunke [Wed, 24 Oct 2018 21:16:38 +0000 (14:16 -0700)]
iris: Fall back to 1x1x1 null surface if no framebuffer supplied

If the state tracker never gave us the framebuffer dimensions via
a set_framebuffer_state() call, just fall back to the unbound texture
null surface, which is 1x1x1.  Otherwise we'd use a NULL resource
(no pun intended).

5 years agoiris: Fix off by one in scissoring, empty scissors, default scissors
Kenneth Graunke [Tue, 23 Oct 2018 08:36:26 +0000 (01:36 -0700)]
iris: Fix off by one in scissoring, empty scissors, default scissors

5 years agoiris: Move snapshots_landed to the front.
Kenneth Graunke [Mon, 22 Oct 2018 22:55:54 +0000 (15:55 -0700)]
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.

5 years agoiris: Clamp UBO and SSBO access to the actual BO size, for safety
Kenneth Graunke [Mon, 22 Oct 2018 21:35:33 +0000 (14:35 -0700)]
iris: Clamp UBO and SSBO access to the actual BO size, for safety

5 years agoiris: Fix texture buffer / image buffer sizes.
Kenneth Graunke [Mon, 22 Oct 2018 21:28:54 +0000 (14:28 -0700)]
iris: Fix texture buffer / image buffer sizes.

Also fix image buffers with offsets.

5 years agoiris: fix SF_CLIP_VIEWPORT array indexing with multiple VPs
Kenneth Graunke [Mon, 22 Oct 2018 21:06:04 +0000 (14:06 -0700)]
iris: fix SF_CLIP_VIEWPORT array indexing with multiple VPs

fixes bunches of viewport stuffs

5 years agoiris: flag CC_VIEWPORT when changing num viewports
Kenneth Graunke [Mon, 22 Oct 2018 00:43:32 +0000 (17:43 -0700)]
iris: flag CC_VIEWPORT when changing num viewports

this also has a loop over num_viewports

5 years agoiris: fix UBOs with bindings that have an offset
Kenneth Graunke [Sun, 21 Oct 2018 22:14:02 +0000 (15:14 -0700)]
iris: fix UBOs with bindings that have an offset

5 years agoiris: try and avoid pointless compute submissions
Kenneth Graunke [Fri, 19 Oct 2018 09:12:29 +0000 (02:12 -0700)]
iris: try and avoid pointless compute submissions

if apps don't use compute shaders, we don't even want to kick off the
compute initialization batch

5 years agoiris: fix SBA flushing by refactoring code
Kenneth Graunke [Fri, 19 Oct 2018 09:11:11 +0000 (02:11 -0700)]
iris: fix SBA flushing by refactoring code

5 years agoiris: do PIPELINE_SELECT for render engine, add flushes, GLK hacks
Kenneth Graunke [Fri, 19 Oct 2018 09:00:13 +0000 (02:00 -0700)]
iris: do PIPELINE_SELECT for render engine, add flushes, GLK hacks

5 years agoiris: hack to avoid memorybarriers out the wazoo
Kenneth Graunke [Fri, 19 Oct 2018 08:40:06 +0000 (01:40 -0700)]
iris: hack to avoid memorybarriers out the wazoo

we don't want to emit piles of pipe controls to a compute batch if
it isn't necessary...

prevents double-batch-wraps in cs-op-selection-bool-bvec4-bvec4
(but it's still kinda a big ol' hack...)

5 years agoiris: don't let render/compute contexts stomp each other's dirty bits
Kenneth Graunke [Fri, 19 Oct 2018 08:31:56 +0000 (01:31 -0700)]
iris: don't let render/compute contexts stomp each other's dirty bits

only clear what you process

5 years agoiris: better dirty checking
Kenneth Graunke [Fri, 19 Oct 2018 08:29:05 +0000 (01:29 -0700)]
iris: better dirty checking

5 years agoiris: rewrite grid surface handling
Kenneth Graunke [Fri, 19 Oct 2018 08:14:38 +0000 (01:14 -0700)]
iris: rewrite grid surface handling

now we only upload a new grid when it's actually changed, which saves us
from having to emit a new binding table every time it changes.

this also moves a bunch of non-gen-specific stuff out of iris_state.c

5 years agoiris: XXX for compute state tracking :/
Kenneth Graunke [Fri, 19 Oct 2018 05:38:32 +0000 (22:38 -0700)]
iris: XXX for compute state tracking :/

Maybe we should just move dirty to batch, it would help with the
reset stuff too

5 years agoiris: fix whitespace
Kenneth Graunke [Fri, 19 Oct 2018 05:32:50 +0000 (22:32 -0700)]
iris: fix whitespace

5 years agoiris: bail if SLM is needed
Kenneth Graunke [Fri, 19 Oct 2018 04:26:06 +0000 (21:26 -0700)]
iris: bail if SLM is needed

5 years agoiris: leave XXX about unnecessary binding table uploads
Kenneth Graunke [Fri, 19 Oct 2018 04:15:02 +0000 (21:15 -0700)]
iris: leave XXX about unnecessary binding table uploads

5 years agoiris: drop unnecessary #ifdefs
Kenneth Graunke [Fri, 19 Oct 2018 03:04:33 +0000 (20:04 -0700)]
iris: drop unnecessary #ifdefs

5 years agoiris: drop XXX that Jordan handled
Kenneth Graunke [Mon, 15 Oct 2018 02:05:31 +0000 (19:05 -0700)]
iris: drop XXX that Jordan handled

5 years agoiris/compute: Support indirect compute dispatch
Jordan Justen [Fri, 21 Sep 2018 09:28:44 +0000 (02:28 -0700)]
iris/compute: Support indirect compute dispatch

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/compute: Push subgroup-id
Jordan Justen [Tue, 18 Sep 2018 23:24:13 +0000 (16:24 -0700)]
iris/compute: Push subgroup-id

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/compute: Flush compute batch on memory-barriers
Jordan Justen [Tue, 18 Sep 2018 22:08:44 +0000 (15:08 -0700)]
iris/compute: Flush compute batch on memory-barriers

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/compute: Provide binding table entry for gl_NumWorkGroups
Jordan Justen [Sun, 23 Sep 2018 22:25:10 +0000 (15:25 -0700)]
iris/compute: Provide binding table entry for gl_NumWorkGroups

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/compute: Wait on compute batch when mapping
Jordan Justen [Tue, 18 Sep 2018 22:04:14 +0000 (15:04 -0700)]
iris/compute: Wait on compute batch when mapping

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/program: Don't try to push ubo ranges for compute
Jordan Justen [Tue, 18 Sep 2018 21:23:58 +0000 (14:23 -0700)]
iris/program: Don't try to push ubo ranges for compute

We only can push constants for compute shaders from one range.

Gallium glsl-to-nir (src/mesa/state_tracker/st_glsl_to_nir.cpp) lowers
all uniform accesses to a ubo.

Unfortunately we also load the subgroup-id as a uniform in the
compiler. Since we use the 1 push range for this subgroup-id, we then
lose the ability to actually push the ubo with all the normal user
uniform values.

In other words, there is lots of room for performance improvement, but
at least retrieving the uniforms as pull-constants is functional for
now.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/compute: Get group counts from grid->grid
Jordan Justen [Tue, 18 Sep 2018 20:04:59 +0000 (13:04 -0700)]
iris/compute: Get group counts from grid->grid

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/compute: Flush compute batches
Jordan Justen [Thu, 13 Sep 2018 18:42:29 +0000 (11:42 -0700)]
iris/compute: Flush compute batches

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/compute: Add MEDIA_STATE_FLUSH following WALKER
Jordan Justen [Sun, 23 Sep 2018 22:09:55 +0000 (15:09 -0700)]
iris/compute: Add MEDIA_STATE_FLUSH following WALKER

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris: Add iris_restore_compute_saved_bos
Jordan Justen [Wed, 19 Sep 2018 19:25:18 +0000 (12:25 -0700)]
iris: Add iris_restore_compute_saved_bos

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris: Add IRIS_DIRTY_CONSTANTS_CS
Jordan Justen [Wed, 19 Sep 2018 19:24:09 +0000 (12:24 -0700)]
iris: Add IRIS_DIRTY_CONSTANTS_CS

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris/compute: Set mask bits on PIPELINE_SELECT
Jordan Justen [Thu, 13 Sep 2018 18:40:10 +0000 (11:40 -0700)]
iris/compute: Set mask bits on PIPELINE_SELECT

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris: little bits of compute basics
Kenneth Graunke [Fri, 27 Jul 2018 04:59:20 +0000 (21:59 -0700)]
iris: little bits of compute basics

5 years agoiris: drop XXX's about swizzling
Kenneth Graunke [Tue, 16 Oct 2018 02:25:24 +0000 (19:25 -0700)]
iris: drop XXX's about swizzling

pretty sure this is unnecessary on modern HW

5 years agoiris: drop dead format //'s
Kenneth Graunke [Tue, 16 Oct 2018 02:22:22 +0000 (19:22 -0700)]
iris: drop dead format //'s

these just aren't supported

5 years agoiris: yes
Kenneth Graunke [Tue, 16 Oct 2018 02:15:06 +0000 (19:15 -0700)]
iris: yes

5 years agoiris: initial compute caps
Kenneth Graunke [Fri, 27 Jul 2018 06:13:51 +0000 (23:13 -0700)]
iris: initial compute caps

RET macro borrowed from freedreno

5 years agoiris: Enable fb fetch
Kenneth Graunke [Mon, 15 Oct 2018 17:43:49 +0000 (10:43 -0700)]
iris: Enable fb fetch

needed for ES 3.2

5 years agoiris: advertise GL_ARB_shader_texture_image_samples
Kenneth Graunke [Mon, 15 Oct 2018 16:51:54 +0000 (09:51 -0700)]
iris: advertise GL_ARB_shader_texture_image_samples

5 years agoiris: Set num_uniforms in bytes
Jordan Justen [Tue, 18 Sep 2018 21:22:34 +0000 (14:22 -0700)]
iris: Set num_uniforms in bytes

Ref: brw_nir_lower_uniforms, type_size_scalar_bytes

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
5 years agoiris: move images next to textures in binding table
Kenneth Graunke [Thu, 11 Oct 2018 04:44:43 +0000 (21:44 -0700)]
iris: move images next to textures in binding table

5 years agoiris: null for non-existent cbufs
Kenneth Graunke [Tue, 2 Oct 2018 17:21:57 +0000 (10:21 -0700)]
iris: null for non-existent cbufs

prevents BTs from being shifted down incorrectly

5 years agoiris: actually set image access
Kenneth Graunke [Tue, 2 Oct 2018 17:09:26 +0000 (10:09 -0700)]
iris: actually set image access

5 years agoiris: Don't lower image formats for write-only images
Jason Ekstrand [Tue, 2 Oct 2018 03:18:00 +0000 (22:18 -0500)]
iris: Don't lower image formats for write-only images

5 years agoiris: set image access correctly
Kenneth Graunke [Fri, 14 Sep 2018 07:49:13 +0000 (00:49 -0700)]
iris: set image access correctly

5 years agoiris: bother with BTIs
Kenneth Graunke [Thu, 30 Aug 2018 22:49:32 +0000 (15:49 -0700)]
iris: bother with BTIs

5 years agoiris: implement set_shader_images hook
Kenneth Graunke [Thu, 30 Aug 2018 22:45:36 +0000 (15:45 -0700)]
iris: implement set_shader_images hook

5 years agoiris: lower storage image derefs
Kenneth Graunke [Thu, 30 Aug 2018 22:20:12 +0000 (15:20 -0700)]
iris: lower storage image derefs

5 years agoiris: set the binding table size
Kenneth Graunke [Fri, 14 Sep 2018 21:18:13 +0000 (14:18 -0700)]
iris: set the binding table size

we weren't doing mark_surface_used on images (i965 does it while
uploading the unnecessary image uniforms), so our binding tables were
too small...

5 years agoiris: X32_S8X24 :/
Kenneth Graunke [Tue, 9 Oct 2018 23:47:54 +0000 (16:47 -0700)]
iris: X32_S8X24 :/

This can happen when faking Z32_S8X24 and setting StencilSampling = true

I guess we'll just turn it into S8_UINT...

Fixes KHR-GL45.texture_swizzle.functional

5 years agoiris: enable I/L formats
Kenneth Graunke [Mon, 8 Oct 2018 03:50:19 +0000 (20:50 -0700)]
iris: enable I/L formats

5 years agoiris: Use R/RG instead of I/L/A when sampling
Kenneth Graunke [Mon, 8 Oct 2018 03:47:21 +0000 (20:47 -0700)]
iris: Use R/RG instead of I/L/A when sampling

5 years agoiris: rework format translation apis
Kenneth Graunke [Mon, 8 Oct 2018 03:31:09 +0000 (20:31 -0700)]
iris: rework format translation apis

5 years agoiris: Allow PIPE_CONTROL with Stall at Scoreboard and RT flush
Kenneth Graunke [Mon, 8 Oct 2018 20:44:01 +0000 (13:44 -0700)]
iris: Allow PIPE_CONTROL with Stall at Scoreboard and RT flush

It's nonsensical, but not illegal, and mandatory on Icelake

5 years agoiris: add gen11 to genX_call
Kenneth Graunke [Mon, 8 Oct 2018 13:26:15 +0000 (06:26 -0700)]
iris: add gen11 to genX_call

5 years agoiris: inline stage_from_pipe to avoid unused warnings
Kenneth Graunke [Sun, 7 Oct 2018 05:54:38 +0000 (22:54 -0700)]
iris: inline stage_from_pipe to avoid unused warnings

5 years agoiris: pipe to scs -> iris_pipe.h
Kenneth Graunke [Sun, 7 Oct 2018 05:50:34 +0000 (22:50 -0700)]
iris: pipe to scs -> iris_pipe.h

5 years agoiris: force persample interp cap
Kenneth Graunke [Fri, 5 Oct 2018 22:25:53 +0000 (15:25 -0700)]
iris: force persample interp cap

5 years agoiris: stencil texturing
Kenneth Graunke [Fri, 5 Oct 2018 02:49:06 +0000 (19:49 -0700)]
iris: stencil texturing

5 years agoiris: fix Z32_S8 depth sampling
Kenneth Graunke [Fri, 5 Oct 2018 02:34:34 +0000 (19:34 -0700)]
iris: fix Z32_S8 depth sampling

We were accidentally using the ISL_FORMAT_R32_FLOAT_X8X24_TYPELESS
format, which is NOT what we use.  We just store R32_FLOAT depth.

fixes Piglit's texwrap GL_ARB_depth_buffer_float

5 years agoiris: don't mark contains_draw = false when chaining batches
Kenneth Graunke [Wed, 3 Oct 2018 03:09:01 +0000 (20:09 -0700)]
iris: don't mark contains_draw = false when chaining batches

chaining to a new batch reuses create_batch(), but we don't need to do
the work of pinning BOs we inherit from a previous batch...when that is
actually part of the same execbuf invocation.

instead, just flag it when setting primary_batch_size = 0, in
iris_batch_reset