summaryrefslogtreecommitdiffstats
path: root/src/intel
Commit message (Collapse)AuthorAgeFilesLines
* isl: Rework the get_intratile_offset functionJason Ekstrand2016-04-083-38/+60
| | | | | | | | | | The old function tried to work in elements which isn't, strictly speaking, a valid thing to do. In the case of a non-power-of-two format, there is no guarantee that the x offset into the tile is a multiple of the format block size. This commit refactors it to work entirely in terms of a tiling (not a surface) and bytes/rows. Reviewed-by: Nanley Chery <[email protected]>
* anv/image: Expose the guts of CreateBufferView for metaJason Ekstrand2016-04-082-16/+29
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Refactor in preparation for different src/dst typesJason Ekstrand2016-04-082-120/+238
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Add layouts for using a texel buffer sourceJason Ekstrand2016-04-082-12/+53
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Rename the descriptor set and pipeline layoutsJason Ekstrand2016-04-082-12/+12
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Enhance teardown and clean up init error pathsJason Ekstrand2016-04-081-60/+57
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Factor binding the source image into a helperJason Ekstrand2016-04-081-57/+82
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Inline meta_emit_blit2dJason Ekstrand2016-04-081-191/+170
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Pass the source pitch into the shaderJason Ekstrand2016-04-081-8/+13
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Break the texelfetch portion of shader building into a helperJason Ekstrand2016-04-081-23/+36
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Fix whitespaceJason Ekstrand2016-04-081-10/+10
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Fix a NIR writemaskJason Ekstrand2016-04-081-1/+1
| | | | Reviewed-by: Nanley Chery <[email protected]>
* anv/meta2d: Don't declare an array sampler in the fragment shaderJason Ekstrand2016-04-081-4/+4
| | | | | | | | With the new blit framework we aren't using array textures and, from talking with Nanley, we don't think it's going to be useful in the future either. Just get rid of it for now. Reviewed-by: Nanley Chery <[email protected]>
* anv/blit2d: Remove the tex_dim parameter from copy_fragment_shaderJason Ekstrand2016-04-081-4/+4
| | | | Reviewed-by: Nanley Chery <[email protected]>
* genxml: Add GEN6 genxmlKristian Høgsberg Kristensen2016-04-062-0/+1940
| | | | Not used yet, but let's put it here for now.
* anv/gen7: Fix command parser version test with indirect dispatchJordan Justen2016-03-281-1/+1
| | | | | Caught-by: Ilia Mirkin <[email protected]> Signed-off-by: Jordan Justen <[email protected]>
* anv/gen7: DispatchIndirect requires cmd parser 5Jordan Justen2016-03-281-0/+26
| | | | Signed-off-by: Jordan Justen <[email protected]>
* anv/gen7: Save kernel command parser versionJordan Justen2016-03-282-0/+12
| | | | Signed-off-by: Jordan Justen <[email protected]>
* anv: Invalidate state cache before L3 partitioning set-up.Jordan Justen2016-03-282-0/+2
| | | | | | Port 10d84ba9f084174a1e8e7639dfb05dd855ba86e8 to anv. Signed-off-by: Jordan Justen <[email protected]>
* anv: Fix cache pollution race during L3 partitioning set-up.Jordan Justen2016-03-282-20/+52
| | | | | | Port 0aa4f99f562a05880a779707cbcd46be459863bf to anv. Signed-off-by: Jordan Justen <[email protected]>
* anv/blit2d: Add a function to create an ImageViewNanley Chery2016-03-251-113/+83
| | | | | | | | | This function differs from the open-coded implementation in that the ImageView's width is determined by the caller and is not unconditionally set to match the number of texels within the surface's pitch. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/image: Enable specifying a surface's minimum pitchNanley Chery2016-03-251-1/+1
| | | | | | | | | | | | | This is required to create multiple, horizontally adjacent, max-width images from one blit2d surface. This is also required for more accurate width specification of surfaces within a larger surface (which is seen as the smaller surface's enclosing region). Note that anv_image_create_info::stride has been unused since commit, b36938964063a4072abfd779f5607743dbc3b6f1 . Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv: Use genxml register support for L3 Cache configJordan Justen2016-03-252-38/+48
| | | | | | | The programming of the L3 Cache registers should match the previous manually packed LRI values. Signed-off-by: Jordan Justen <[email protected]>
* genxml: Add L3 Cache Control register definitionsJordan Justen2016-03-244-0/+69
| | | | | | Based on intel_reg.h (5912da45a69923afa1b7f2eb5bb371d848813c41) Signed-off-by: Jordan Justen <[email protected]>
* anv: Add genxml register supportJordan Justen2016-03-241-0/+9
| | | | Signed-off-by: Jordan Justen <[email protected]>
* genxml: Add register supportJordan Justen2016-03-241-19/+43
| | | | Signed-off-by: Jordan Justen <[email protected]>
* Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand2016-03-245-7/+8
|
* anv: Sanitize Image extents and offsetsNanley Chery2016-03-244-45/+106
| | | | | | | | | | | | | | | Prepare Image extents and offsets for internal consumption by assigning the default values implicitly defned by the spec. Fixes textures on several Vulkan demos in which the VkImageCopy depth is set to zero when copying a 2D image. v2 (Jason Ekstrand): Replace "prep" with "sanitize" Make function static inline Pass structs instead of pointers Reviewed-by: Jason Ekstrand <[email protected]> Signed-off-by: Nanley Chery <[email protected]>
* anv/device: Advertise version 1.0.5Jason Ekstrand2016-03-221-1/+1
| | | | Nothing substantial has changed since 1.0.2
* anv/device: Ignore the patch portion of the requested API versionJason Ekstrand2016-03-221-1/+1
| | | | | | Fixes dEQP-VK.api.device_init.create_instance_name_version Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94661
* anv: Don't assert-fail if someone asks for a non-existent entrypointJason Ekstrand2016-03-221-1/+0
|
* anv/batch_chain: Fall back to growing batches when chaining isn't availableJason Ekstrand2016-03-213-2/+70
|
* anv/allocator: Make the bo_pool dynamically sizedJason Ekstrand2016-03-183-28/+32
|
* anv/allocator: Add a size field to bo_pool_allocJason Ekstrand2016-03-184-6/+11
|
* Merge remote-tracking branch 'origin/master' into vulkanJordan Justen2016-03-171-6/+0
|
* anv/blit: Reduce number of VUE headers being readNanley Chery2016-03-162-2/+2
| | | | | Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/blit: Remove completed finishme for VkFilterNanley Chery2016-03-161-2/+0
| | | | | | | | This task was finished as of: d9079648d0f1c380929dea0f3a447ddfdf5dcd27. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/blit2d: Only use one extent in meta_emit_blit2dNanley Chery2016-03-161-10/+8
| | | | | | | Since scaling isn't involved, we don't need multiple extents. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/blit2d: Remove sampler from pipelineNanley Chery2016-03-161-14/+4
| | | | | | | | | | | | | Since we're using texelFetch with a sampled image, a sampler is no longer needed. This agrees with the Vulkan Spec section 13.2.4 Descriptor Set Updates: sampler is a sampler handle, and is used in descriptor updates for types VK_DESCRIPTOR_TYPE_SAMPLER and VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER if the binding being updated does not use immutable samplers. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/blit2d: Use texel fetch in frag shaderNanley Chery2016-03-161-25/+18
| | | | | | | | | | | | | | | | The texelFetch operation requires that the sampled texture coordinates be unnormalized integers. This will simplify the copy shader for w-tiled images (stencil buffers). v2 (Jason): Use f2i for texel coords Fix num_components indirectly Use float inputs for interpolation Nest tex_pos functions Suggested-by: Jason Ekstrand <[email protected]> Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* Revert "anv/meta: Make meta_emit_blit() public"Nanley Chery2016-03-162-12/+1
| | | | | | | | | | This reverts commit f39168392243d6dacefbc8708b764c5978ff24df. Some conflicts had to be resolved in order for this revert to be successful. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* Revert "anv/meta: Prefix anv_ to meta_emit_blit()"Nanley Chery2016-03-162-3/+3
| | | | | | | This reverts commit 514c0557178b0325c59a28d68b0f250f0eeaddf5. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/blit2d: Customize meta blit structs and functions for blit2d APINanley Chery2016-03-163-90/+41
| | | | | | | | | * Add fields in meta struct * Add support in meta init/teardown * Switch to custom meta_emit_blit2d() Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/blit2d: Copy anv_meta_blit.c functionsNanley Chery2016-03-162-0/+600
| | | | | | | These will be customized for blit2d operations. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
* anv/device: Flush the fence batch rather than the start of the BOJason Ekstrand2016-03-151-1/+1
|
* anv/gen7: Add stall and flushes before switching pipelinesJordan Justen2016-03-121-0/+24
| | | | | | | This is a port of 18c76551ee425b981efefc61f663a7781df17882 from OpenGL to Vulkan. Signed-off-by: Jordan Justen <[email protected]>
* anv: Add flush_pipeline_before_pipeline_selectJordan Justen2016-03-121-13/+22
| | | | | | | flush_pipeline_before_pipeline_select adds workarounds required before switching the pipeline. Signed-off-by: Jordan Justen <[email protected]>
* anv/genX: Add flush_pipeline_select_gpgpuJordan Justen2016-03-124-27/+30
| | | | Signed-off-by: Jordan Justen <[email protected]>
* HACK: Don't re-configure L3$ in render stages pre-BDWJason Ekstrand2016-03-121-0/+11
| | | | | | | This fixes a "regression" on Haswell and prior caused by merging the gen7 and gen8 flush_state functions. Haswell should still work just fine if you're on a 4.4 kernel, but we really should make it detect the command parser version and do something intelligent.
* anv/x11: Reset the SHM fence before presenting the pixmapJason Ekstrand2016-03-111-0/+2
| | | | This seems to fix the flicker issue that I was seeing with dota2