Mesa (broadwell): 196 new commits
Kenneth Graunke
kwg at kemper.freedesktop.org
Wed Feb 19 10:19:34 UTC 2014
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8711ee22ac24d3aaff6abff0ea7620b3c0484aac
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 11:42:47 2014 -0800
i965: Actually claim to support MSAA on Broadwell.
We need to advertise 8x, 4x, and 2x multisamples. Previously, we only
claimed to support 0/1 samples.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ffd1fe037e6abfbd47ab1358b86f066cd262396
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 16:48:14 2014 -0800
i965: Update physical width/height munging for 2x IMS MSAA.
I can't find any documentation to explain what ought to be done here, so
I simply guessed based on the pattern I observed in the 4x/8x cases.
It appears to work, but it could be totally wrong.
I was able to find the Sandybridge PRM quote from the comments in the
latest documentation: Shared Functions > 3D Sampler > Multisampled
Surface Behavior. However, it only mentions 4x MSAA - not even 8x.
After a substantial amount more digging, I was able to find a second
page (incorrectly tagged) which confirmed the formulas in our code for
8x MSAA. However, that page didn't mention 2x MSAA at all.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=79bfbb4fad95cdc780152c63eb420a5ccb41c6d4
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 19:37:08 2014 -0800
i965: Enable smooth points when multisampling without point sprites.
According to the "Point Multisample Rasterization" of the OpenGL
specification (3.0 or later), smooth points are supposed to be enabled
implicitly when multisampling, regardless of the GL_POINT_SMOOTH flag.
However, if GL_POINT_SPRITE is enabled, you get square points no matter
what. Core contexts always enable point sprites, so this effectively
makes smooth points go away, even in the case of multisampling.
Fixes Piglit's EXT_framebuffer_multisample/point-smooth tests.
(Yes, that's right folks, we actually have Piglit tests for this.)
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=40d8ff36d17fd846d8e7c01cf88b1af8a70bc209
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 18:17:10 2014 -0800
i965: Thwack multisample enable bit in 3DSTATE_RASTER.
The meaning and effects of this bit are surprisingly complicated.
See Rasterization > Windower > Multisampling > Multisample ModesState.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c2b3929b6289f7154e38d3e2a69dd65650a9996
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 17:40:24 2014 -0800
i965: Only use the SIMD16 program for per-sample shading on Broadwell.
This is a straight port from gen7_wm_state.c; I haven't looked into
whether we can do both.
v2: Actually do it right.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=62a17c1d38e5b5e5b226d20ca7c82643b1cdc807
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 17:31:00 2014 -0800
i965: Set "Position XY Offset Select" bits in 3DSTATE_PS on Broadwell.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ccf7d3abf842d12bb7fab03e2d8b2ff4493a66d
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Jan 20 23:06:30 2014 -0800
i965: Add missing sample shading bits to Gen8's 3DSTATE_PS_EXTRA.
v2: Also set the "oMask Present to Render Target" bit, which is required
for shaders that write oMask. Otherwise the hardware won't expect
the extra data.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6f364cc58398818f683ecf66f22d1a43c63479f
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 15:46:56 2014 -0800
i965/fs: Implement FS_OPCODE_SET_OMASK on Broadwell.
I made a few changes which I think simplify the code a bit compared to
the Gen7 implementation, but which are largely pointless.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=21d7f15feacb0103f3d0b2c333c4b0f22f010b02
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 15:09:22 2014 -0800
i965/fs: Implement FS_OPCODE_SET_SAMPLE_ID on Broadwell.
Largely cut and paste from Gen7; it works the same way.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e2a538656570742d285c5f9d8a12071e944e2dc3
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 12:02:14 2014 -0800
Hack: Disable MCS on Broadwell for now.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f8dc4a1032ef23f19f317d542b40f82434cb94b
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 11:18:41 2014 -0800
i965: Use gen7_surface_msaa_bits in Broadwell SURFACE_STATE code.
We already set the number of samples, but were missing the MSAA layout
mode. Reusing gen7_surface_msaa_bits makes it easy to set both.
This also lets us drop the Gen8 surface_num_multisamples function.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=86da4f320e89bf7642f32b86762dbaf4660a201c
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 10 11:06:03 2014 -0800
i965: Use ffs() for sample counting in gen7_surface_msaa_bits().
The enumerations are just log2(num_samples) shifted by 3, which we can
easily compute via ffs().
This also makes it reusable for Broadwell, which has 2x MSAA.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf8599670abbcda72ecc3a5172574abacb6c1251
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Feb 9 16:14:27 2014 -0800
i965: Simplify Broadwell's 3DSTATE_MULTISAMPLE sample count handling.
These enumerations are simply log2 of the number of multisamples shifted
by a bit, so we can calculate them using ffs() in a lot less code.
Suggested by Eric Anholt.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b8070ffd4e81f10667275b976ecdbc12bbfcc69
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Jan 27 15:49:56 2014 -0800
i965/fs: Implement scratch read/write support for Broadwell.
To make sure that both the Gen4 and Gen7 style messages work, I
initially disabled the SHADER_OPCODE_GEN7_SCRATCH_READ optimization,
ran Piglit, re-enabled it, and ran Piglit again. Both worked fine.
Fixes 40 Piglit tests (most of the varying-packing category).
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3204d5d0de65de087cc237467b8098233b1dd2a8
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Jan 27 15:44:18 2014 -0800
i965: Add Gen8 assembly support for DP Scratch messages.
The new accessors will make it easy to do Gen7-style scratch messages.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f4c72aade527a224d8ada5dd4f1b5e7fedc4262
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Tue Feb 4 22:18:03 2014 -0800
i965: Store absolute thread count in max_wm_threads on Broadwell.
In the past, 3DSTATE_PS took an absolute number of threads. Conversely,
on Broadwell you always program 64, and it implicitly scales based on
the GT-level with no special programming. So, I stored 64 in
brw_device_info::max_wm_threads.
However, I didn't realize that we also use max_wm_threads to compute the
size of the scratch space buffer. In that case, we really need the
absolute number of threads.
This patch hardcodes 3DSTATE_PS to use the value it expects, and changes
max_wm_threads back to a (completely fake) absolute thread count (once
again copied from Haswell).
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ef663e5dd5348ff8e9be150749410eb1d23779a
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Jan 29 13:45:27 2014 -0800
i965/fs: Implement FS_OPCODE_[UN]PACK_HALF_2x16_SPLIT[_XY] opcodes.
I'd neglected to port these to Broadwell. Most of this code is copy
and pasted from Gen7, but instead of using F32TO16/F16TO32, we just
use MOV with HF register types.
Fixes fs-packHalf2x16 and fs-unpackHalf2x16 tests (both the ARB
extension and ES 3.0 variants).
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b4f9f70d2d6d5192be837641db7c2d65091276a8
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Jan 29 14:16:27 2014 -0800
i965: Drop bogus F32TO16/F16TO32 instructions on Broadwell - use MOV.
Broadwell removed the F32TO16 and F16TO32 instructions. However, it has
actual support for HF values, so they're actually just MOV.
Fixes vs-packHalf2x16 and vs-unpackHalf2x16 tests (both the ARB
extension and ES 3.0 variants).
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4ca08185af680de85013bb1d4f747eabb1e8640
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Jan 20 23:56:38 2014 -0800
stash - vp fixes?
doesn't seem to actually fix anything.
oh, this might only be relevant when I turn on the viewport extents test
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1221d42631e85a5c142754d08836c1353e9b0ec7
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Jan 30 15:30:19 2014 -0800
i965: Use MOV, not OR for setting URB write channel enables on Gen8+.
On Broadwell, g0.5 contains the "Scratch Space Pointer"; using OR
puts some bits of that into "ignored" sections of our message header.
While this doesn't hurt, it's also not terribly /useful/. Using MOV
is sufficient to set the only interesting bits in this part of the
message header.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=703397137e1993e969230452d19166d5ee610970
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Dec 30 22:07:20 2013 -0800
i965: Enable Broadwell support.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e4c6b0bd454c2ba04663d8af94f735fe185eec37
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Tue Jan 28 22:02:56 2014 -0800
Also emit VF_INSTANCING in the no-elements case.
I can't imagine why this would matter since there's no actual data being
pulled, but...for safety?
Not observed to help anything
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=316a4641bf0fbd4d50716f730c2d8951ab350098
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Jan 26 00:20:21 2014 -0800
i965: Implement a CS stall workaround
According to the latest documentation, any PIPE_CONTROL with the
"Command Streamer Stall" bit set must also have another bit set,
with five different options:
- Render Target Cache Flush
- Depth Cache Flush
- Stall at Pixel Scoreboard
- Post-Sync Operation
- Depth Stall
I chose "Stall at Pixel Scoreboard" since we've used it effectively
in the past, but the choice is fairly arbitrary.
Implementing this in the PIPE_CONTROL emit helpers ensures that the
workaround will always take effect when it ought to.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d804c0e70bce4212fd14f3eee573a5e4f982edb
Author: Eric Anholt <eric at anholt.net>
Date: Thu Feb 13 09:30:41 2014 -0800
i965: Drop the blitter-based glBlitFramebuffer() path.
Now that meta can do single-copy blits even from renderbuffers and depth,
we don't need this any more.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed9baae8f5fb446b9c1e13f665981a6111170c4e
Author: Eric Anholt <eric at anholt.net>
Date: Thu Feb 13 09:31:38 2014 -0800
i965: Drop blorp for glBlitFramebuffer() except for the stencil case.
I still need to do stencil for meta's blit path.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f56400ab5370c6d0b32aecda104bdc6783f19f5
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 10 23:44:54 2014 -0800
meta: Add support for integer blits.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b07590d7e6df047f45c3c61f5bb98c91b2bd72c4
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 10 15:24:07 2014 -0800
meta: Add support for doing MSAA to MSAA blits.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4e9eed19d1058d9e637eabbea5f292ddcc993f8
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 10 16:23:50 2014 -0800
meta: Save and restore a bunch of MSAA state.
We're disabling GL_MULTISAMPLE, so we didn't need to worry about a lot of
that state. But to do MSAA to MSAA blits, we need to start handling more
state.
v2: Fix pasteo caught by Kenneth.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a547a3fe73a0fe5d069568936548f2bcbca5d55a
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 10 11:20:11 2014 -0800
meta: Try to do blending of sRGB values in linear colorspace.
Blending of values would occur when doing GL_LINEAR filtering with
scaling, and in an upcoming commit when doing MSAA resolves.
!UPSTREAM: [citation needed]
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=84ab3c4200a46710676040580a9e6683dd4344ca
Author: Eric Anholt <eric at anholt.net>
Date: Fri Feb 7 14:00:31 2014 -0800
meta: Add support for doing multisample resolves.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=73aae292eacda9e75bc46c4814165d60fa044110
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 18 15:14:30 2014 -0800
i965: Fix miptree matching for multisampled, non-interleaved miptrees.
We haven't been executing this code before the meta-blit case, because
we've been flagging the miptree as validated at texstorage time, and never
having to revalidate.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f39a128a99fcf9d910590f2de73e8ef8a4bd5b7a
Author: Eric Anholt <eric at anholt.net>
Date: Wed Feb 5 10:54:51 2014 -0800
fix stretch blit
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=98e048cf323c22688bfa465153e648005e555d12
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Fri Feb 7 14:02:36 2014 -0800
i965: Enable fast depth clears.
They work fine now, too.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7023786417d8ecf9ea8236d17c739af087ac05be
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Feb 6 17:13:24 2014 -0800
i965: Enable HiZ on Broadwell.
It appears to work fine.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8cad1c115a091c2b5cb34c9d8f530204f47de9fa
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Feb 6 17:06:12 2014 -0800
i965: Implement HiZ resolves on Broadwell.
Broadwell's 3DSTATE_WM_HZ_OP packet makes this much easier.
Instead of programming the whole pipeline, we simply have to emit the
depth/stencil packets, a state override, and a pipe control. Then
arrange for the state to be put back. This is easily done from a single
function.
v2: Use minify(mt->logical_{width,height}0, level) in 3DSTATE_WM_HZ_OP
instead of intel_mipmap_level's width/height fields. Those were
based on the physical width/height, and thus wrong for MSAA buffers.
Eric also deleted those fields.
v3: Use 0xFFFF as the sample mask regardless of what the user set (as
this operation is unrelated); set the drawing rectangle to the
miplevel being operated on, rather than the whole surface; remove
unnecessary MAX2(..., 1) around mt->logical_depth0 (all suggested
by Eric Anholt).
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=82711611cf1dce82a667e531c2befad5a494f1cf
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Feb 6 17:02:37 2014 -0800
i965: Refactor Gen8 depth packet emission.
The existing code followed the vtable function signature, which is not a
great fit: many of the parameters are unused, and the function still
inspects global state, making it less reusable.
This patch refactors the depth buffer packet emission code into a new
function which takes exactly the parameters it needs, and which uses no
global state. It then makes the existing vtable function call the new
one.
Ideally, we would remove the vtable function, and clean up that
interface. But that can happen once HiZ is working.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=67f073b91c1be3a6ca15b36a579473c7562e6632
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Feb 6 16:49:31 2014 -0800
i965: Add #defines for the 3DSTATE_WM_HZ_OP packet's contents.
We're going to need these to implement HiZ.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=577fdf1f4896041263b6de5980343c6721f6ec00
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Feb 6 07:32:49 2014 -0800
i965: Bump generation check in code to disable HiZ at LODs > 0.
Broadwell's "HiZ Resolve" operation still has the restriction that the
rectangle primitive must be 8x4 aligned. So I believe we still need
this.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5d2eb6b98c87e58f158c0426dd180bc4aab53a0
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Feb 6 07:21:41 2014 -0800
i965: Program 3DSTATE_HIER_DEPTH_BUFFER properly on Broadwell.
HiZ buffers still don't exist, but when they do, we'll set them up.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=09d9a8913e8c28fc4c1c60d7da85a2f093786894
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Fri Feb 7 22:22:45 2014 -0800
i965: Pull format conversion logic out of brw_depthbuffer_format.
brw_depthbuffer_format is not very reusable at the moment, since it
uses global state (ctx->DrawBuffer) to access a particular depth buffer.
For HiZ on Broadwell, I need a function which simply converts the
formats. However, at least one existing user of brw_depthbuffer_format
really wants the existing interface. So, I've created a new function.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4695f64895ed016e8c13b87315fb28fd91a26668
Author: Chia-I Wu <olvaffe at gmail.com>
Date: Wed Feb 19 13:04:04 2014 +0800
egl: clarify what _eglInitResource does
It is a helper called from the initializers of its subclasses.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc97e54d97ab9a3816a03a656c1ed530a046da0d
Author: Chia-I Wu <olvaffe at gmail.com>
Date: Wed Feb 19 12:57:15 2014 +0800
Revert "egl: Unhide functionality in _eglInitContext()"
This reverts commit 1456ed85f0ed8b9c9f0abd6bd389a089fa3824b2.
_eglInitResource can and is supposed to be called on subclass objects.
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=924490a747f7ee192815c7f9872a05f66243e9df
Author: Chia-I Wu <olvaffe at gmail.com>
Date: Wed Feb 19 12:57:11 2014 +0800
Revert "egl: Unhide functionality in _eglInitSurface()"
This reverts commit 498d10e230663f8604d00608cae6324f779c9cdd.
_eglInitResource can and is supposed to be called on subclass objects.
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c593ad6e467b07ec0c70923d79259dbfb68b1bed
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Feb 2 03:03:39 2014 -0800
i965: Bump MaxTexMbytes from 1GB to 1.5GB.
Even with the other limits raised, TestProxyTexImage would still reject
textures > 1GB in size. This is an artificial limit; nothing prevents
us from having a larger texture. I stayed shy of 2GB to avoid the
larger-than-aperture situation.
For 3D textures, this raises the effective limit:
- RGBA8: 645 -> 738
- RGBA16: 512 -> 586
- RGBA32F: 406 -> 465
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74130
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c044231535b93c5d16404528946cad618d96bd9
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Feb 2 02:58:42 2014 -0800
i965: Bump GL_MAX_CUBE_MAP_TEXTURE_SIZE to 8192.
Gen4+ supports 8192x8192 cube maps. Ivybridge and later can actually
support 16384, but that would place GL_MAX_CUBE_MAP_TEXTURE_SIZE above
GL_MAX_TEXTURE_SIZE, which seems like a bad idea.
(Unfortunately, we can't bump GL_MAX_TEXTURE_SIZE to 16384 without
causing regressions due to awful W-tiled stencil buffer interactions.)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74130
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=06b047ebc75c6af02f806d051a5703748ee76b69
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Feb 2 02:51:45 2014 -0800
i965: Bump MAX_3D_TEXTURE_SIZE to 2048.
It's highly unlikely that there will be enough memory in the system to
allocate enough space for this, but we should still expose the hardware
limit. It's what the Intel Windows driver does, and it seems most other
vendors do likewise.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74130
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f0fdee5095649afc61fbe1588369191f62831ec4
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Tue Feb 18 15:24:21 2014 -0800
docs: Trivial updates to MESA_query_renderer.spec
Fix the version and the status before sending to Khronos for listing in
the registry.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c9d6898fdfd7e23306762af9bf2501a5bca1974
Author: Sinclair Yeh <sinclair.yeh at intel.com>
Date: Wed Feb 12 16:21:11 2014 -0800
Prevent zero sized wl_egl_window
It is illegal to create or resize a window to zero (or negative) width
and/or height. This patch prevents such a request from happening.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=03597cf802a7a89c4853794e6206ab8ab003898d
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date: Thu Dec 19 14:17:19 2013 -0800
glsl: Fix condition to generate shader link error
GL_ARB_ES2_compatibility doesn't say anything about shader linking
when one of the shaders (vertex or fragment shader) is absent. So,
the extension shouldn't change the behavior specified in GLSL
specification.
Tested the behavior on proprietary linux drivers of NVIDIA and AMD.
Both of them allow linking a version 100 shader program in OpenGL
context, when one of the shaders is absent.
Makes following Khronos CTS tests to pass:
successfulcompilevert_linkprogram.test
successfulcompilefrag_linkprogram.test
Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6bd2472a8b9a969d06dc110bd30ccd8daf713959
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date: Fri Feb 14 17:27:29 2014 -0800
mesa: Add GL_TEXTURE_CUBE_MAP_ARRAY to legal_get_tex_level_parameter_target()
Fixes failing Khronos CTS test packed_depth_stencil_init.test
Cc: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d92f593d8776ec157ad0e7fa2ee8c9a17fd744ce
Author: Eric Anholt <eric at anholt.net>
Date: Thu Feb 13 21:37:50 2014 -0800
i965/fs: Use conditional sends to do FB writes on HSW+.
This drops the MOVs for header setup, which are totally mis-scheduled.
total instructions in shared programs: 1590047 -> 1589331 (-0.05%)
instructions in affected programs: 43729 -> 43013 (-1.64%)
GAINED: 0
LOST: 0
glb27-trex:
x before
+ after
+-----------------------------------------------------------------------------+
| + x xx + + + |
| ++ + xxx ++x xx + ** *x+ + + + x * |
|+x xx x* x+++xx*x*xx+++*+*xx++** *x* x+***x*+xx+* + * + + *|
| |__|__________MA___A___________|___| |
+-----------------------------------------------------------------------------+
N Min Max Median Avg Stddev
x 49 62.33 65.41 63.49 63.53449 0.62757822
+ 50 62.28 65.4 63.7 63.6982 0.656564
No difference proven at 95.0% confidence
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=422679835479a053d5b5ac9cf75e2fbb7e827755
Author: Eric Anholt <eric at anholt.net>
Date: Fri Feb 14 15:41:40 2014 -0800
i965/fs: Drop dead comment about the old proj_attrib_mask optimization.
The code was removed early last year.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f128bcc7c293013f4b44e4b661638333de0077c2
Author: Eric Anholt <eric at anholt.net>
Date: Fri Feb 14 13:00:40 2014 -0800
i965: Drop mt->levels[].width/height.
It often confused people because it was unclear on whether it was the
physical or logical, and people needed the other one as well. We can
recompute it trivially using the minify() macro, clarifying which value is
being used and making getting the other value obvious.
v2: Fix a pasteo in intel_blit.c's dst flip.
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz> (v1)
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e0924c5de5f3964e4ca81f923d877dbb59fad0a
Author: Eric Anholt <eric at anholt.net>
Date: Thu Feb 13 10:45:35 2014 -0800
i965: Move singlesample_mt to the renderbuffer.
Since only window system renderbuffers can have a singlesample_mt, this
lets us drop a bunch of sanity checking to make sure that we're just a
renderbuffer-like thing.
v2: Fix a badly-written comment (thanks Kenneth!), drop the now trivial
helper function for set_needs_downsample.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=019560c127778dc3b08bdc7c3acdc68dbbb80ea0
Author: Eric Anholt <eric at anholt.net>
Date: Thu Feb 13 14:33:57 2014 -0800
i965: Drop some duplicated code in DRI winsys BO updates.
The only DRI2 vs DRI3 delta was just how to decide about frontbuffer-ness
for doing the upsample.
v2: Fix missing singlesample_mt->region->name update in the merged code,
which would have broken the DRI2 don't-recreate-the-miptree
optimization.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0440e677b98c6e09f0958fcf782be67dccb94b08
Author: Eric Anholt <eric at anholt.net>
Date: Thu Feb 13 10:52:47 2014 -0800
i965: Simplify intel_miptree_updownsample.
Pretty silly to pass in values dereferenced out of one of the arguments.
v2: Get the destination size from the dst, even though the callers are
always dealing with src size == dst size cases.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bbd85ad27c0051697b49260348c686a1b947e884
Author: Eric Anholt <eric at anholt.net>
Date: Thu Feb 13 15:58:21 2014 -0800
i965: Don't try to use the ctx->ReadBuffer when asked to blorp miptrees.
So far it's happened to be that we're only ever calling
intel_miptree_blit() (up/downsampling) from the ReadBuffer, but I stumbled
over a null ReadBuffer case when debugging later parts of the series.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=af4f758a4422aaf80fc5c2eda306485961eaf1be
Author: Eric Anholt <eric at anholt.net>
Date: Fri Feb 7 14:20:34 2014 -0800
i965: Make the mt->target of multisample renderbuffers be 2D_MS.
Mostly mt->target == 2D_MS just results in a few checks that we don't try
to allocate multiple LODs and don't try to do slice copies with them. But
with the introduction of binding renderbuffers to textures, we need more
consistency.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e4a537ad55f61a25ec16de4a1812847ed2b39e2
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 11 12:10:59 2014 -0800
meta: Push into desktop GL mode when doing meta operations.
This lets us simplify our shaders, and rely on GLES-prohibited
functionality (like ARB_texture_multisample) when writing these
driver-internal functions.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3dcce65c9b400e8d658f672130c617d8ac84cc9
Author: Eric Anholt <eric at anholt.net>
Date: Fri Feb 14 14:31:17 2014 -0800
meta: Fix blit shader compile on non-glsl-130 drivers.
Compare this VS to the one for the post-130 case. Fixes piglit
glsl-lod-bias, and presumably tons of other code (I haven't done a full
piglit run on swrast).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74911
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=20d14ef2633215c5d24741de76b5d59aa3dcbc22
Author: Rob Clark <robclark at freedesktop.org>
Date: Tue Feb 18 08:12:37 2014 -0500
configure: fix build error with XA
Fixes:
xa_tracker.c: In function 'xa_tracker_create':
xa_tracker.c:147:5: error: implicit declaration of function 'pipe_loader_drm_probe_fd' [-Werror=implicit-function-declaration]
in some build configurations, as XA now implicitly depends on
gallium_drm_loader.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf0172d46ab940a691da6516057c81f28961482f
Author: Michel Dänzer <michel.daenzer at amd.com>
Date: Thu Feb 13 11:51:09 2014 +0900
r600g,radeonsi: Consolidate logic for short-circuiting flushes
Fixes radeonsi emitting command streams to the kernel even when there
have been no draw calls before a flush, potentially powering up the GPU
needlessly.
Incidentally, this also cuts the runtime of piglit gpu.py in about half
on my Kaveri system, probably because an X11 client going away no longer
always results in a command stream being submitted to the kernel via
glamor.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=65761
Cc: "10.1" mesa-stable at lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=adad8fb2e947e3ea9e9d84cb3722e46de91346e4
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Thu Feb 13 00:44:32 2014 +0000
st/dri: remove #ifdef DRM_CAP_PRIME guard
Required for libdrm 2.4.37 and earlier. Both scons and automake
require version 2.4.38 now so that guard is not longer needed.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fbd00e43afdd34e5026b47f2b9a9baa07c25e48
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Tue Feb 18 00:08:03 2014 +0000
automake: remove leftover XORG and LIBKMS variables
No longer set or used since the removal of st/xorg.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b3a4c799a44175129853370621336b31098b62a
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Thu Feb 13 00:28:27 2014 +0000
scons: sync package requirements
xorg-server and libkms is no longer required since the removal
of the xorg state-tracker.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5fe47969c0e7e56fa42e4deadafb37e4b442a559
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Thu Feb 13 00:23:16 2014 +0000
configure: bump up libdrm requirement to 2.4.38
This is the first version that introduced DRM_CAP_PRIME, which is
implicitly required by egl/wayland.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f41102b538418b281602ae6434435c7e285d4a91
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Tue Feb 4 17:32:03 2014 +0000
configure: use test -n whenever possible
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8015ffeea13a1c2b7085b243a56cb6ef8982afb2
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Tue Feb 11 14:47:37 2014 +0000
configure: use test -z whenever possible
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee55500c22a000d95ef4e5855b150f35ea0b5bba
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Tue Feb 4 17:26:38 2014 +0000
configure: cleanup classic dri drivers handling
* Make sure that only drivers that are handled by configure.ac
are included in DRI_DIRS.
* Change with_dri_drivers default value to auto, and set enable
autodetection, when enable_opengl is on.
v2: Move "test" to the correct location.
v3: Squash DRI_DIRS handling before the switch statement.
Suggested by Ilia Mirkin
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=35f6eed742fa8d9ede8bd781fbd89a0212815de4
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Mon Feb 3 21:05:19 2014 +0000
configure: compact ppc/sparc DRI_DIRS handling
Both arches have the same list of dri_dirs.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=65e67b9bf7030ae1d9f74a16f0704f33c40688ca
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Mon Feb 3 20:54:08 2014 +0000
configure: drop explicit DRI_DIRS assignment on some platforms/arches
Both x86_64|amd64 and *bsd, already set the full range of available
classic dri drivers. Drop the explicit assignment, and fall back to
the generic default.
Keep explicit list from plafroms/arches that do not handle the default
list.
Update help strings, to explicitly mention "classic" for applicable
DRI drivers.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=49e93e89455c4ef3d048cc2b3f126be47ff2b55f
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Mon Feb 3 20:38:10 2014 +0000
configure: cleanup switch statement
Move all the cases within one switch statement and handle
i9{1,6}5 and r{adeon,200} independently.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d23f9e3390e8ec19efe3b76818d2bb6bf4264764
Author: Kusanagi Kouichi <slash at ac.auone-net.jp>
Date: Mon Feb 17 17:29:14 2014 +0900
targets/vdpau: Don't link unused libraries
libvdpau, libselinux and libexpat are not used.
Signed-off-by: Kusanagi Kouichi <slash at ac.auone-net.jp>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ba4392da265b0b33e3516e85b2fdcfa9c169c39
Author: Kusanagi Kouichi <slash at ac.auone-net.jp>
Date: Sat Feb 15 11:53:00 2014 +0900
configure: Try pkg-config first for libselinux
v2 (Emil) Add SELINUX_CFLAGS in the respective locations
Signed-off-by: Kusanagi Kouichi <slash at ac.auone-net.jp>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com> (v1)
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=61f6cddef72a49d87e2b31ed49cdbc941d3b1efc
Author: Kusanagi Kouichi <slash at ac.auone-net.jp>
Date: Wed Feb 12 16:07:55 2014 +0900
targets/vdpau: Always use c++ to link
If built without llvm, the following error occurs with mplayer:
Failed to open VDPAU backend .../libvdpau_r600.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE
[vo/vdpau] Error when calling vdp_device_create_x11: 1
Cc: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Kusanagi Kouichi <slash at ac.auone-net.jp>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6958fb341f6d74aa9712fa82feff2932c15862b3
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sun Feb 16 02:21:59 2014 -0500
st/xvmc: fix tests so that they pass
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Christian König <christian.koenig at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b5f894e13c0e290b2d3218ed8305e7428f2242f
Author: Rob Clark <robclark at freedesktop.org>
Date: Mon Feb 10 10:45:36 2014 -0500
pipe-loader: add pipe loader for freedreno/msm
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=24fa96163afccb7ffaff56599e9e91c23c407922
Author: Rob Clark <robclark at freedesktop.org>
Date: Mon Feb 10 10:44:02 2014 -0500
st/xa: missing handle type
DRM_API_HANDLE_TYPE_SHARED is zero, so doesn't actually fix anything.
But we shouldn't rely on SHARED handle type being zero.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=42158926c6d7d3ddbe61b9a04d60544ff1b50a96
Author: Rob Clark <robclark at freedesktop.org>
Date: Mon Feb 10 10:43:11 2014 -0500
st/xa: use pipe-loader to get screen
This lets multiple gallium drivers use XA.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a122c75599cf196b7997fbc5ec2854ebd65af408
Author: Rob Clark <robclark at freedesktop.org>
Date: Mon Feb 10 09:39:23 2014 -0500
pipe-loader: split out "client" version
Build two versions of pipe-loader, with only the client version linking
in x11 client side dependencies. This will allow the XA state tracker
to use pipe-loader.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d73b2c0517feb37a77d1b28b6cc063d699374867
Author: Rob Clark <robclark at freedesktop.org>
Date: Sat Feb 15 19:01:38 2014 -0500
freedreno/a3xx/compiler: use (ss) for WAR hazards
Seems texture sample instructions don't immediately consume there
src(s). In fact, some shaders from blob compiler seem to indiciate that
it does not even count the texture sample instructions when calculating
number of delay slots to fill for non-sample instructions. (Although so
far it seems inconclusive as to whether this is required.)
In particular, when a src register of a previous texture sample
instruction is clobbered, the (ss) bit is needed to synchronize with the
tex pipeline to ensure it has picked up the previous values before they
are overwritten.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8cca57a3f709b9b8bce0b25290d6d8091bbdda7
Author: Rob Clark <robclark at freedesktop.org>
Date: Sun Feb 16 07:41:59 2014 -0500
freedreno/a3xx/compiler: fix RA typo
Was supposed to be a '+', otherwise we end up with a negative offset and
choosing registers below the assigned range.
This seems to fix the scheduling mystery "solved" by adding in extra
delay slots.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=579473f8f838aade82ad58949902910fa5fe15e3
Author: Rob Clark <robclark at freedesktop.org>
Date: Sun Feb 16 07:35:20 2014 -0500
freedreno/a3xx/compiler: handle kill properly (new compiler)
Since 'kill' does not produce a result, the new compiler was happily
optimizing them out. We need to instead track 'kill's similar to
outputs. But since there is no non-predicated kill instruction,
(and for flattend if/else we do want them to be predicated), we need
to track the topmost branch condition on the stack and use that as src
arg to the kill. For a kill at the topmost level, we have to generate
an immediate 1.0 to feed into the cmps.f for setting the predicate
register.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e35747b8824b0f996c5ef5c7b58fcaa200cc231e
Author: Rob Clark <robclark at freedesktop.org>
Date: Sun Feb 16 07:29:13 2014 -0500
freedreno/a3xx/compiler: trans_cmp() sanity
Thanks to figuring out 32bit float render target, and adding regdump
test in fdre-a3xx, I can more easily play around with instructions to
figure out range of inputs/outputs/etc. And from this I can conclude
that cmps.f works more like expected and I can do something much more
simple in trans_cmp() (compared to before which was more closely
emulating the instruction sequence of the blob compiler).
And using sel.b32 (binary 0/1) often makes more sense than sel.f32
(+/- float) or sel.u32 (+/- uint) as it can use the output directly
from cmps.f without needing the 'add.s tmp0, tmp0, -1'.
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=89dc2825819c0260511c6596497c8a350d9901a7
Author: Rob Clark <robclark at freedesktop.org>
Date: Mon Feb 10 09:14:15 2014 -0500
freedreno: fix problems if no color buf bound
Signed-off-by: Rob Clark <robclark at freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1020d8937ef52725cc5adafc12465f6332815e82
Author: Eric Anholt <eric at anholt.net>
Date: Wed Feb 5 15:45:25 2014 -0800
meta: Don't try to enable FF texturing when we're using GLSL.
On a core context, this would throw an error.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a92581acf2aba5e5e9fa199b778e649d5741754d
Author: Carl Worth <cworth at cworth.org>
Date: Thu Feb 13 09:49:27 2014 -0800
main: Avoid double-free of shader Label
As documented, the _mesa_free_shader_program_data function:
"Frees all the data that hangs off a shader program object, but not
the object itself."
This means that this function may be called multiple times on the same object,
(and has been observed to). Meanwhile, the shProg->Label field was not being
set to NULL after its free(). This led to a second call to free() of the same
address on the second call to this function.
Fix this by setting this field to NULL after free(), (just as with all other
calls to free() in this function).
Reviewed-by: Brian Paul <brianp at vmware.com>
CC: mesa-stable at lists.freedesktop.org
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e4a5a9fd2fdd5b5ae8b85ac743a228f409a21a70
Author: Brian Paul <brianp at vmware.com>
Date: Fri Feb 14 07:45:23 2014 -0700
gallium/pipebuffer: change pb_cache_manager_create() size_factor to float
Requested by Marek.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=141e39a8936a7b19fd857a35ea2d200daf1777c7
Author: Thomas Hellstrom <thellstrom at vmware.com>
Date: Sat Feb 8 09:51:15 2014 -0800
svga/winsys: Propagate surface shared information to the winsys
The linux winsys needs to know whether a surface is shared.
For guest-backed surfaces we need this information to avoid allocating a
mob out of the mob cache for shared surfaces, but instead allocate a shared
mob, that is never put in the mob cache, from the kernel.
Also previously, all surfaces were given the "shareable" attribute when
allocated from the kernel. This is too permissive for client-local surfaces.
Now that we have the needed info, only set the "shareable" attribute if the
client indicates that it needs to share the surface.
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe6a854477c2ed30c37c200668a4dc86512120f7
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:15 2014 -0800
svga/winsys: implement GBS support
This is a squash commit of many commits by Thomas Hellstrom.
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=59e7c596215155b556ba8cf06233b621b88f49c6
Author: Thomas Hellstrom <thellstrom at vmware.com>
Date: Sat Feb 8 09:51:15 2014 -0800
gallium/util: Add flush/map debug utility code
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8af358d8bc9f7563cd76313b16d7b149197a4b2c
Author: Thomas Hellstrom <thellstrom at vmware.com>
Date: Sat Feb 8 09:51:15 2014 -0800
gallium/pipebuffer: Add a cache buffer manager bypass mask
In some situations, it may be desirable to bypass the cache at buffer
creation but to insert the buffer in the cache at buffer destruction.
One such situation is where we already have a kernel representation of a
buffer that we want to use, but we also want to insert it in the cache when
it's freed up.
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: José Fonseca <jfonseca at vmware.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9e9b1862b472b2671b8d3b339f9f7624a272073
Author: Thomas Hellstrom <thellstrom at vmware.com>
Date: Sat Feb 8 09:51:15 2014 -0800
pipebuffer, winsys: Add a size match parameter to the cached buffer manager
In some situations it's important to restrict the sizes of buffers that the
cached buffer manager is allowed to return
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d1fd6df5315cfa4b9c8b1332f5078a89abc3ed8
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:15 2014 -0800
svga: update texture code for GBS
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=72b0e959fc38cf4f01d8aaeabe7336cc88588f90
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:15 2014 -0800
svga: update buffer code for GBS
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0a6fb09bdfde40253b924b6c9d1fdf3f16fed21
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: add new helper functions for GBS buffers
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6476bcbc5005b76e1494a201f92f3c76bd8e9727
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: remove a couple unneeded assertions
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8bbd8261d297be11f1f2eaf768c2a8ace0cb69d
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: adjust adjustment for point coordinates
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0c22a6d53a9cce2d40006f3d4d7dd7e2f63aca9
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: track which textures are rendered to
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1e60a61e8ca3bdac0530ad1aeb3c751f273b73d
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: add helpers for tracking rendering to textures
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f84c830b144fd4d53f862fc6ad05541e5bf60a3b
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: update shader code for GBS
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f1fc8db108eb771414aa5440d4c439f63f4e7c1
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: update constant buffer code for GBS
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=31dfefc47f9f12c49fd3cfb27ba4fe384cb60380
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: add svga_have_gb_objects/dma() functions
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=823fbfdca7165ac11eab2a7e168960f5874ebdc3
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: add new GBS commands
And update some existing commands.
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d993ada50cf2f112bfff2bd7fbb5a6c25ca00306
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: update svga_winsys interface for GBS
This adds new interface functions for guest-backed surfaces and
adds a mobid parameter to the surface_relocation() function.
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=024711385ec5333976b124d33a030c30f1345ed1
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:14 2014 -0800
svga: update dumping code with new GBS commands, etc
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e0c90847f16a9cf2a40436beacb65c65535fa4a
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 8 09:51:13 2014 -0800
svga: split / update svga3d header files
The old svga3d_reg.h file is split into separate header files and we
add new items for guest-backed surfaces.
Plus some minor code fixes because of renamed symbols.
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d1cecbfd7d4268e0e4e088af77d637d2bdcc541
Author: Grigori Goronzy <greg at chown.ath.cx>
Date: Thu Feb 13 21:32:30 2014 +0100
st/vdpau: add support for DEINTERLACE_TEMPORAL
Reviewed-by: Christian König <christian.koenig at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=af34c3fd10e2511f02a40810cddebea49093a526
Author: Grigori Goronzy <greg at chown.ath.cx>
Date: Thu Feb 13 21:32:29 2014 +0100
vl: add motion adaptive deinterlacer
Reviewed-by: Christian König <christian.koenig at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f87dfc35bc150696f7d89f77e2f92f7d26d29358
Author: Leo Liu <leo.liu at amd.com>
Date: Mon Feb 3 10:41:05 2014 -0500
st/omx/enc: fix scaling src alignment issue
Signed-off-by: Leo Liu <leo.liu at amd.com>
Signed-off-by: Christian König <christian.koenig at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=01e637114914453451becc0dc8afe60faff48d84
Author: Alex Deucher <alexander.deucher at amd.com>
Date: Wed Feb 12 12:00:17 2014 -0500
radeon: reverse DBG_NO_HYPERZ logic
Change the flag to DBG_HYPERZ and reverse the logic
so setting the flag enabled the feature. This disables
hyperz on r600g and radeonsi by default. It can be
enabled by setting the env var. There are just too
many issues with certain apps so leave it disabled for
now until we sort out the issues with the problematic
apps.
Bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=58660
https://bugs.freedesktop.org/show_bug.cgi?id=64471
https://bugs.freedesktop.org/show_bug.cgi?id=66352
https://bugs.freedesktop.org/show_bug.cgi?id=68799
https://bugs.freedesktop.org/show_bug.cgi?id=72685
https://bugs.freedesktop.org/show_bug.cgi?id=73088
https://bugs.freedesktop.org/show_bug.cgi?id=74428
https://bugs.freedesktop.org/show_bug.cgi?id=74803
https://bugs.freedesktop.org/show_bug.cgi?id=74863
https://bugs.freedesktop.org/show_bug.cgi?id=74892
https://bugzilla.kernel.org/show_bug.cgi?id=70411
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
Cc: "10.1" "10.0" <mesa-stable at lists.freedesktop.org>
Acked-by: Marek Olšák <marek.olsak at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c4bd95b6292c744484d3febe7c000a71f80a33d
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Fri Jan 24 17:51:06 2014 -0500
pipe-loader: Add support for render nodes v2
v2:
- Add missing call to pipe_loader_drm_release()
- Fix render node macros
- Drop render-node configure option
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8481d208cee0e10250d5f34487defec414470bb5
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Mon Jan 27 10:34:16 2014 -0500
pipe-loader: Add auth_x parameter to pipe_loader_drm_probe_fd()
The caller can use this boolean parameter to tell the pipe-loader
to authenticate with the X server when probing a file descriptor.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0320ba9988f370957bb029e846f51d485dd606f4
Author: Christian König <christian.koenig at amd.com>
Date: Thu Feb 13 12:50:51 2014 +0100
st/omx/dec/h264: fix pic_order_cnt_type==2
Signed-off-by: Christian König <christian.koenig at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c8b165366d68291e3013c7308b8b1fdd5ade2a2
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Wed Feb 12 18:22:56 2014 -0500
nouveau: fix chipset checks for nv1a by using the oclass instead
Commit f4ebcd133b9 ("dri/nouveau: NV17_3D class is not available for
NV1a chipset") fixed this partially by using the correct 3d class.
However there were a lot of checks left over comparing against the
chipset.
Reported-and-tested-by: John F. Godfrey <jfgodfrey at gmail.com>
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: 9.2 10.0 10.1 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ef3ce415522c77f11477c340efeef7b61cb8cb3
Author: Christian König <christian.koenig at amd.com>
Date: Mon Aug 5 11:41:27 2013 -0600
st/omx: initial OpenMAX H264 encoder v7
v2 (chk): fix eos handling
v3 (leo): implement scaling configuration support
v4 (leo): fix bitrate bug
v5 (chk): add workaround for bug in Bellagio
v6 (chk): fix div by 0 if framerate isn't known,
user separate pipe object for scale and transfer,
always flush the transfer pipe before encoding
v7 (chk): make suggested changes, cleanup a bit more,
only advertise encoder on supported hardware
Signed-off-by: Christian König <christian.koenig at amd.com>
Signed-off-by: Leo Liu <leo.liu at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ff0cf903dc4ed806961d1e099d1308322092892
Author: Christian König <christian.koenig at amd.com>
Date: Thu Oct 17 06:21:40 2013 -0600
radeon/vce: initial VCE support v8
v2 (chk): revert feedback buffer hack
v3 (slava): fixed bitstream size calculation
v4 (chk): always create buffers in the right domain
v5 (chk): flush async
v6 (chk): rework fw interface add version check
v7 (leo): implement cropping support
v8 (chk): add hw checks
Signed-off-by: Christian König <christian.koenig at amd.com>
Signed-off-by: Leo Liu <leo.liu at amd.com>
Signed-off-by: Slava Grigorev <slava.grigorev at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbdd052577e798e0cd7b39eb75cfebee406f8410
Author: Christian König <christian.koenig at amd.com>
Date: Mon Jul 8 08:32:04 2013 -0600
radeon/winsys: add VCE support v4
v2: add fw version query
v3: add README.VCE
v4: avoid error msg when kernel doesn't support it
Signed-off-by: Christian König <christian.koenig at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef9a6ded10d17e42b36a1382d71fd6d547121ee7
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Thu Feb 13 02:33:37 2014 -0500
nv50: mark scissors/viewports dirty on context switch
Commit 246ca4b001 ("nv50: implement multiple viewports/scissors, enable
ARB_viewport_array") added dirty tracking to scissors/viewports. However
it neglected to mark them all as dirty on a context switch. This fixes
an apparent regression in webgl in chrome, but probably in any
application that switches contexts.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ef7b9de068cc8c17b148538e569ec8d3d601fdf
Author: Christian König <christian.koenig at amd.com>
Date: Tue Feb 11 11:55:47 2014 +0100
gallium/vl: remove remaining softpipe video functions
Unused and unmaintained for quite a while.
Signed-off-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=18caef953f2de134077bfa6e46f8616f68ff1b1b
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Wed Feb 12 22:14:23 2014 -0500
docs: add nv50 to the ARB_viewport_array list
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=246ca4b00156a5ed54c2fca61454ba751bed8912
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Tue Jan 21 02:56:01 2014 -0500
nv50: implement multiple viewports/scissors, enable ARB_viewport_array
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7012eede83f3a6b014b952ff837e5b377a7a12a
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Tue Feb 11 00:26:32 2014 -0500
mesa/st: hardcode the viewport bounds range
The bound range is disconnected from the viewport dimensions. This is
the relevant bit from glViewportArray:
"""
The location of the viewport's bottom left corner, given by (x, y) is
clamped to be within the implementaiton-dependent viewport bounds range.
The viewport bounds range [min, max] can be determined by calling glGet
with argument GL_VIEWPORT_BOUNDS_RANGE. Viewport width and height are
silently clamped to a range that depends on the implementation. To query
this range, call glGet with argument GL_MAX_VIEWPORT_DIMS.
"""
Just set it to +/-16384, as that is the minimum required by
ARB_viewport_array and the value that all current drivers provide.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Dave Airlie <airlied at redhat.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f0e967f212cf00ef16a046e5ec6c3bb056fa7974
Author: Brian Paul <brianp at vmware.com>
Date: Wed Feb 12 17:46:11 2014 -0700
scons: add meta_blit.c to src/mesa/SConscript
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=255bd9c0b83e3cb3914ee5a1386c8d5acdbc046a
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 4 23:57:29 2014 -0800
meta: Add acceleration for depth glBlitFramebuffer().
Surprisingly, the GLSL shaders already wrote the sampled r value to
FragDepth.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51600
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=067c7b67e8080bb2ad9ed857f1e62ddae8da6e6d
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 4 15:00:46 2014 -0800
meta: Use BindRenderbufferTexImage() for meta glBlitFramebuffer().
This avoids a CopyTexImage() on Intel i965 hardware without blorp.
v2: Move the !readAtt check up higher.
v3: Rebase on idr's changes, plus readAtt check is totally gone, and also
fix a typo in a comment.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org> (v2)
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f29c25fc1d235d381b64f44450baf098f08e39af
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 4 12:51:11 2014 -0800
i965: Add a driver hook for binding renderbuffers to textures.
This will let us use meta's acceleration from renderbuffers without having
to do a CopyTexImage first.
This is like what we do for TFP, but just taking an existing renderbuffer
and binding it to a texture with whatever its format was. The
implementation won't work for stencil renderbuffers, and it only does
non-texture renderbuffers (but then, if you're using a texture
renderbuffer, you can just pull the texture object/level/slice out of the
renderbuffer, anyway).
v2: Don't forget to propagate NumSamples to the teximage.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=431decf16f0971534e32ec4c6c24cbce281a06f6
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 4 14:52:27 2014 -0800
meta: Do a massive unindent (and rename) of blitframebuffer_texture().
This function is only handling the color case. We can just unindent as
long as we're willing to do the check for the bit outside of the
function.
v2: Rebase on idr's changes, drop readAtt check that's always non-null
anyway (it's a pointer into to the statically-allocated attachments
array in the renderbuffer).
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org> (v1)
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e4ccf499e1d0dd8bf6864f3aba96d58f0a96048
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 3 15:31:01 2014 -0800
meta: Move glBlitFramebuffer() to a separate file.
v2: Drop a bunch of unnecessary includes (by Kenneth), rebase on idr's
changes.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org> (v1)
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=81ddbdaaba29ef2a626b1823ca72c937b8be4426
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 3 15:08:54 2014 -0800
meta: De-static some of meta's functions.
I want split some meta.c code off to a separate file, so these functions
can't be static any more.
v2: Rebase on idr's changes, also expose setup_blit_shader,
blit_shader_table_cleanup, setup_vertex_objects,
setup_ff_tnl_for_blit.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org> (v1)
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c8f182c86a4e712db74742eafb8a81dad76acfa
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 3 15:02:16 2014 -0800
meta: Move the meta structures to the meta header.
I'd like to split some of our code to separate files, since 4k lines and
growing is pretty unreasonable for all these separate operations.
v2: Rebase on idr's changes.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org> (v1)
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd084aa297ff96832d3af4e6aa6df9a06be9375f
Author: Eric Anholt <eric at anholt.net>
Date: Mon Feb 3 15:58:03 2014 -0800
meta: Fold the texture setup into setup_copypix_texture().
There was this funny argument passed to setup for "did alloc decide we
need to allocate new texture storage?", which goes away if we don't have
the caller do alloc as a separate step.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=397b2c3966175de00e84d0de061c6ad10adb35f5
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 4 23:22:52 2014 -0800
meta: Drop the src == dst restriction on meta glBlitFramebuffer().
From the GL_ARB_fbo spec:
If the source and destination buffers are identical, and the
source and destination rectangles overlap, the result of the blit
operation is undefined.
As far as I know, that's the only thing that would have been of concern
for this.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4f3e2ca0e6cb4b794109c869e7b872e4ce267af
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 4 14:04:14 2014 -0800
mesa: Make TexImage error cases about internalFormat more informative.
I tripped over one of these when debugging meta, and it's a lot nicer to
just see the internalFormat being complained about.
v2: Drop a note in the other errors path that there is one early return.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56b031d8aec952e445de21fb4aa849985f98f8eb
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 11 16:33:20 2014 -0800
meta: Rename the "sampler" stuff to "blit shader".
While these structs are generated per GLSL sampler type, they're structs
of data-about-shaders (notably, the ID of a shader program), not
data-about-samplers.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e455c8283b2e46f81cf43ae65d23b1de27ee3f67
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 11 16:19:29 2014 -0800
meta: Drop a now-trivial helper function.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e48a6378c905ab7817fcd19e08c186a89a39e005
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 11 16:13:21 2014 -0800
meta: Fold the glUseProgram() into the blit program generator.
Everyone was just immediately calling it and doing nothing else with the
shader program id.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b719aa39026826b8262d74fffdc58a75cc6a107e
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 11 16:08:51 2014 -0800
meta: Simplify the blit shader setup steps.
The only thing that wants to track the glsl_sampler structure is the
shader string generator.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b424da4be07ab8d34986e6f3824c679b623df952
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Nov 27 22:21:45 2013 -0800
i965/vec4: Fix confusion between SWIZZLE and BRW_SWIZZLE macros.
Most of the VEC4 back-end agrees on src_reg::swizzle being one of the
BRW_SWIZZLE macros defined in brw_reg.h, except in two places where we
use Mesa's SWIZZLE macros. There is even a doxygen comment saying
that Mesa's macros are the right ones. They are incompatible swizzle
representations (3 bits vs. 2 bits per component), and the code using
Mesa's works by pure luck. Fix it.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3a55067bdf608402aeb98d515c52e2436a8f226
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Jan 15 22:21:50 2014 +0100
i965/fs: Remove fs_reg::sechalf.
The same effect can be achieved using ::subreg_offset. Remove the
less flexible alternative and define a convenience function to keep
the fs_reg interface sane.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=019bf6ed8dd4843512e9d4924f4702ce36047ad5
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Jan 15 22:21:30 2014 +0100
i965/fs: Remove fs_reg::smear.
The same effect can be achieved using a combination of ::stride and
::subreg_offset. Remove the less flexible ::smear to keep the data
members of fs_reg orthogonal.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=756d37b1d6d09ad7ee3b8835888a49d4256e427b
Author: Francisco Jerez <currojerez at riseup.net>
Date: Sun Dec 8 04:57:35 2013 +0100
i965/fs: Add support for specifying register horizontal strides.
v2: Some improvements for copy propagation with non-contiguous
register strides and mismatching types.
v3: Add example of the situation that the copy propagation changes are
intended to avoid. Clarify that 'fs_reg::apply_stride()' is expected
to work with zero strides too.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c7206bafdd7bde7617e14840812e43459682718
Author: Francisco Jerez <currojerez at riseup.net>
Date: Sun Dec 8 04:57:08 2013 +0100
i965/fs: Add support for sub-register byte offsets to the FS back-end IR.
It would be nice if we could have a single 'reg_offset' field
expressed in bytes that would serve the purpose of both, but the
semantics of 'reg_offset' are quite complex currently (it's measured
in units of one, eight or sixteen dwords depending on the register
file and the dispatch width) and changing it to bytes would be a very
intrusive change at this stage. Add a separate 'subreg_offset' field
for now.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=248606a5f065b88ee6328c233e54f163088de5d5
Author: Brian Paul <brianp at vmware.com>
Date: Wed Feb 12 13:22:27 2014 -0700
glsl: rename _restrict to restrict_flag
To fix MSVC compile breakage. Evidently, _restrict is an MSVC keyword,
though the docs only mention __restrict (with two underscores).
Note: we may want to also rename _volatile to volatile_flag to be
consistent.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74900
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd0620ff6c2c629e4888f4c98cfd6655adbfb69e
Author: Brian Paul <brianp at vmware.com>
Date: Mon Feb 10 16:13:04 2014 -0700
mesa: assorted clean-ups in detach_shader()
Fix formatting, add new comments, get rid of extraneous indentation.
Suggested by Ian in bug 74723.
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=23d4ff53d4acd0c33c633174a288a640664036fe
Author: Brian Paul <brianp at vmware.com>
Date: Mon Feb 10 16:12:32 2014 -0700
svga: replace out-of-temps assertion with debug warning
Signed-off-by: Brian Paul <brianp at vmware.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=76f95ba2721ec3214e39711a991b510bdb3c5a36
Author: Francisco Jerez <currojerez at riseup.net>
Date: Fri Nov 22 19:59:48 2013 -0800
mesa: Handle binding of uniforms to image units with glUniform*().
v2: Set driver-specified flag in NewDriverState when glUniform* is
used to bind an image unit.
v3: Abbreviate argument type check.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=212122543b5eb69613853bf03f0c4fd5494c06a0
Author: Francisco Jerez <currojerez at riseup.net>
Date: Sat Nov 23 21:56:56 2013 -0800
glsl/linker: Propagate image uniform access qualifiers to the driver.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c318a677dd20a5a9d891f0891363b4811aa7b04f
Author: Francisco Jerez <currojerez at riseup.net>
Date: Fri Nov 22 15:53:52 2013 -0800
glsl/linker: Assign image uniform indices.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e51158f2e77155bcfc6ba5f42d1cf9b9c9810930
Author: Francisco Jerez <currojerez at riseup.net>
Date: Fri Nov 22 15:53:26 2013 -0800
glsl/linker: Count and check image resources.
v2: Add comment about the reason why image variables take up space
from the default uniform block.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8dbe430aa77d6a775e087938bd19002f2a39e18
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 20:29:57 2013 -0800
glsl: Add image built-in function generator.
Because of the combinatorial explosion of different image built-ins
with different image dimensionalities and base data types, enumerating
all the 242 possibilities would be annoying and a waste of .text
space. Instead use a special path in the built-in builder that loops
over all the known image types.
v2: Generate built-ins on GLSL version 4.20 too. Rename
'_has_float_data_type' to '_supports_float_data_type'. Avoid
duplicating enumeration of image built-ins in create_intrinsics()
and create_builtins().
v3: Use a more orthodox approach for passing image built-in generator
parameters.
v4: Cosmetic changes.
Acked-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87acc7c650e765751eb787db7d23cc242670c68a
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Feb 12 17:15:21 2014 +0100
glsl: Add built-in constants for ARB_shader_image_load_store.
v2: Add them on GLSL version 4.20 too.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6057300ec68be3cbccdd3e6512aba833c63c2bb8
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Feb 12 17:12:24 2014 +0100
glcpp: Add built-in define for ARB_shader_image_load_store.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=60c89f8bff360dd79dea487eb197949381a72868
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 14:09:13 2013 -0800
glsl: Add built-in types defined by ARB_shader_image_load_store.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7af167d2becc3ff7274350d8d29424ebf89aa6a9
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 19:38:37 2013 -0800
glsl/ast: Generalize some sampler variable restrictions to all opaque types.
No opaque types may be statically initialized in the shader, all
opaque variables must be declared uniform or be part of an "in"
function parameter declaration, no opaque types may be used as the
return type of a function.
v2: Add explicit check for opaque types in interface blocks. Check
for opaque types in ir_dereference::is_lvalue().
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2158749e522cb62d961d64d7b887cd730f915faa
Author: Francisco Jerez <currojerez at riseup.net>
Date: Fri Nov 22 15:17:05 2013 -0800
glsl/ast: Forbid declaration of image variables in structures and uniform blocks.
Aggregating images inside uniform blocks is explicitly disallowed by
the standard, aggregating them inside structures is not (as of GL
4.4), but there is a similar problem as with atomic counters: image
uniform declarations require either a "writeonly" memory qualifier or
an explicit format qualifier, which are explicitly forbidden in
structure member declarations. In the resolution of Khronos bug
#10903 the same wording applied to atomic counters was decided to mean
that they're not allowed inside structures -- Rejecting image member
declarations within structures seems the most reasonable option for
now.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b28528d1c206a9b0c962a1e35ed177db7818cfa
Author: Francisco Jerez <currojerez at riseup.net>
Date: Sun Dec 8 04:56:06 2013 +0100
glsl/ast: Make sure that image argument qualifiers match the function prototype.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=81c167ef1c96df1aba1b294e0eeed631d7d3268c
Author: Francisco Jerez <currojerez at riseup.net>
Date: Fri Nov 22 15:11:50 2013 -0800
glsl/ast: Verify that function calls don't discard image format qualifiers.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=94a95e03d9e20e3af0b3fce5a7dab0b3d4162053
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 15:57:56 2013 -0800
glsl/ast: Validate and apply memory qualifiers to image variables.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=910311c4a63fda5dc110847f237fefb17c4601f4
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 15:14:25 2013 -0800
glsl/parser: Handle image built-in types.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9cf61df3b1c477c145aa0dc3aa3d7d55ec172d8
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 15:10:35 2013 -0800
glsl/parser: Handle image memory qualifiers.
v2: Make the "map" array static const.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fcd869ed56db83cfdafe8af030518cd8cf7f5708
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Feb 12 17:10:09 2014 +0100
glsl/parser: Handle the early_fragment_tests input layout qualifier.
v2: Only allow the early_fragment_tests qualifier in fragment shaders.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0b26faa25110df16791f20e5560beb57a27894a
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 14:59:46 2013 -0800
glsl/lexer: Add new tokens for ARB_shader_image_load_store.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=299e869d25c88a3c2da4bd4a6d85ce24684136f0
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Feb 12 16:56:01 2014 +0100
glsl/ast: Keep track of type qualifiers defined by ARB_shader_image_load_store.
v2: Add comment next to the read_only and write_only qualifier flags.
Change temporary copies of the type qualifier mask to use uint64_t
too.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c116541b2c3a45715de15e3180627263143ad426
Author: Francisco Jerez <currojerez at riseup.net>
Date: Fri Nov 22 15:50:48 2013 -0800
glsl: Add gl_uniform_storage fields to keep track of image uniform indices.
v2: Promote anonymous struct into named struct.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb13691d1c4df0c9258289b77867e5d5c890a838
Author: Francisco Jerez <currojerez at riseup.net>
Date: Fri Nov 22 20:57:44 2013 -0800
glsl: Add image memory and layout qualifiers to ir_variable.
v2: Add comment next to the read_only and write_only qualifier flags.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=107d03a6d5b63687361b2b4d2876ef52b082cbb5
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 14:03:06 2013 -0800
glsl: Add helper methods to glsl_type for dealing with images.
Add predicates to query if a GLSL type is or contains an image.
Rename sampler_coordinate_components() to coordinate_components().
v2: Use assert instead of unreachable.
v3: No need to use a separate code-path for images in
coordinate_components() after merging image and sampler fields in
the glsl_type structure.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a2508ee0726b349318c1e05122edbe5a545480a
Author: Francisco Jerez <currojerez at riseup.net>
Date: Mon Nov 25 13:50:47 2013 -0800
glsl: Add image type to the GLSL IR.
v2: Reuse the glsl_sampler_dim enum for images. Reuse the
glsl_type::sampler_* fields instead of creating new ones specific
to image types. Reuse the same constructor as for samplers adding
a new 'base_type' argument.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e611fc72dc80abd7bc1fec7863eb1fccb833930
Author: Francisco Jerez <currojerez at riseup.net>
Date: Wed Feb 12 16:54:40 2014 +0100
glsl: Add ARB_shader_image_load_store extension enables.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9afbd04d892f96e7fc6b689ca57ea5da124f7560
Author: Fredrik Höglund <fredrik at kde.org>
Date: Fri Feb 7 20:34:08 2014 +0100
mesa: Preserve the NewArrays state when copying a VAO
Cc: "10.1" "10.0" <mesa-stable at lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72895
Reviewed-by: Brian Paul <brianp at vmware.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fee0686c21c631d96d6042741267a3c218c23ffc
Author: Maarten Lankhorst <maarten.lankhorst at canonical.com>
Date: Wed Feb 12 14:56:53 2014 +0100
nouveau: create only 1 shared screen between vdpau and opengl
This fixes bug 73200 "vdpau-GL interop fails due to different screen
objects" in the same way radeon does.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=572a8345bfd1d6289a91b64eef92565ef9b3ee55
Author: Maarten Lankhorst <maarten.lankhorst at canonical.com>
Date: Wed Feb 12 13:50:43 2014 +0100
gallium makefiles: use a linker script for building dri drivers
Only export __driDriverExtensions by default, and radeon_drm_winsys_create on radeons.
Remove -Bsymbolic which should no longer be needed.
As a side effect, it ought to fix a manifestation of bug 73200 on radeon.
Signed-off-by: Maarten Lankhorst<maarten.lankhorst at canonical.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=025d99ce3cea21c9ecea77b95655c0c838b2fa3c
Author: Matt Turner <mattst88 at gmail.com>
Date: Mon Feb 10 12:09:19 2014 -0800
glsl: Do not vectorize vector array dereferences.
Array dereferences must have scalar indices, so we cannot vectorize
them.
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
Reported-by: Andrew Guertin <lists at dolphinling.net>
Tested-by: Andrew Guertin <lists at dolphinling.net>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4cffd3e791e4696ac672f2053b821937a2a5fb58
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 17:11:15 2013 -0800
meta: Enable cubemap array texture support to decompress_texture_image
Fixed piglit test getteximage-targets S3TC CUBE_ARRAY on systems that
don't have libtxc_dxtn installed.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=daa3eea8774f2ced9573e54f68332c4a7ce0c143
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 17:10:29 2013 -0800
meta: Add cubemap array support to generic blit shader code
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e68aa128492a65cc4eb610c3b8afa497d1868157
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 16:25:07 2013 -0800
meta: Get the correct info log
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=10f7c544772a4b0b1f69d8e9fe4efd593c94418b
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 15:35:02 2013 -0800
meta: Expand texture coordinate from vec3 to vec4
This will be necessary to support cubemap array textures because they
use all four components.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2ad3dbfa436ff205bffca5333ec0061208d52ae
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 15:01:54 2013 -0800
meta: Use GLSL to decompress 2D-array textures
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72582
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1417aae6c468adafdb64bd8f64ff348ece27b06
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 13:10:53 2013 -0800
meta: Use common GLSL code for blits
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d524654c34c42fff785dcdc08c9a73abd88fbf45
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 13:10:11 2013 -0800
meta: Improve GLSL version check
We want to use the GLSL 1.30-ish path for OpenGL ES 3.0.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4825af972a7e318f34ca20a32e8e1597f90ae90c
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 11:56:26 2013 -0800
meta: Add rectangle textures to the shader-per-sampler-type table
Rectangle textures were not necessary for mipmap generation (because
they cannot have mipmaps), but all of the future users of this common
code will need to support rectangle textures.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f5a477ab76b6e0b268387699cd2253a43db0dfae
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 11:54:08 2013 -0800
meta: Refactor shader generation code out of mipmap generation path
This is quite like code we want for blits. Pull it out so that it can
be shared by other paths.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed3bc38ee7dd4a11046036432ab40f753c4644b5
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 11:52:38 2013 -0800
meta: Refactor the table of glsl_sampler structures
This will allow the same table of shader-per-sampler-type to be used for
paths in meta other than just mipmap generation. This is also the
reason the declarations of the structures was moved towards the top of
the file.
v2: Code formatting change suggested by Brian.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b514f241019c6ce5ee0905c6f0a59eae1ddc03e6
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Sat Dec 14 19:33:02 2013 -0800
meta: Use common vertex setup code for _mesa_meta_Bitmap too
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=75227a09681f1cb89c2a5e9257acb1c703335597
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Sat Dec 14 19:32:39 2013 -0800
meta: Add storage to the vertex structure for R, G, B, and A
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e5d87ff329530664772a2c3ea4377c146591622
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Sat Dec 14 11:36:32 2013 -0800
meta: Use common routine to configure fixed-function TNL state
Also... glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0) *is* the identity
matrix, so drop the unnecessary call to _mesa_Ortho.
v2: Rename setup_ff_TNL_for_blit() to setup_ff_tnl_for_blit(). Seems
silly to capitalize one out of two to three acronyms in the name
(change by anholt, acked by idr).
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com> (v1)
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=35e8de383cec285fbc9cf6dfc514fc7ea9b42ba7
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 3 14:30:39 2014 -0800
i965: Fix General and Indirect Base Addresses on Broadwell.
I set the "address modify enable" bit in the wrong DWord. The first
DWord is the high 16 bits of the address, while the second is the low
32-bits and enable bit.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0e90ea09fa24306d13304a4acad9a85291623c0
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Feb 3 10:45:31 2014 -0800
i965: Drop VECTOR_MASK_ENABLE in Broadwell's 3DSTATE_VS packet.
We never set it on previous generations, but I had to set it in
3DSTATE_PS for correct behavior. For symmetry, I set it in 3DSTATE_VS
as well, but there's no actual need to do so. Piglit works fine either
way. The documentation also remarks that there should never be a need
to program this.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4dd1002518505f65e112dc9be1a68593724a86f2
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Jan 29 16:31:31 2014 -0800
i965/gs: Fix EndPrimitive on Broadwell.
My earlier patch (i965: Reserve space for "Vertex Count" in GS outputs.)
incremented Global Offset for most URB writes to make room for the new
"Vertex Count" field, but failed to shift the URB writes used for
writing control bits.
Confusingly, Global Offset must be incremented by 2 here, rather than 1.
The URB writes we use for actual data are HWord writes, which treat
Global Offset as a 256-bit offset. These are OWord writes, so it's
treated as a 128-bit offset instead.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ebfac8d723daa3d7f1e20cbfba0000c284f05e3
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Jan 23 11:05:46 2014 -0800
i965/vec4: Support arbitrarily large sampler indices on Broadwell+.
I added support for these on Haswell, but forgot to update the Broadwell
code before landing it. Fixes Piglit's max-samplers test.
v2: Use get_element_ud() for the destination as well as the source.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b371734331a3a15966038de3e3e6e8c30372b3c2
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Jan 23 10:58:25 2014 -0800
i965/fs: Support arbitrarily large sampler indices on Broadwell+.
I added support for these on Haswell, but forgot to update the Broadwell
code before landing it. Partially fixes Piglit's max-samplers test.
v2: Use get_element_ud() consistently, rather than using it for the
source but using brw_vec1_grf for the destination..
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e21ba07f27442b6d53bbba7cf5d7840e416c341
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Jan 23 10:55:16 2014 -0800
i965/fs: Fix Broadwell texture header setup to be uncompressed.
MOV_RAW disables masking, but doesn't force the instruction to be
uncompressed. That needs to be done by hand.
Fixes textureGather and texture offset tests.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1edca151a00134778b959366d5e7c0a3b63cc8f7
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Jan 13 15:23:48 2014 -0800
mesa: GL_ARB_half_float_pixel is not optional
Almost every driver already supported it. All current and future
Gallium drivers always support it, and most existing classic drivers
support it.
This only changes radeon and nouveau.
This extension only adds data types that can be passed to, for example,
glTexImage2D. It does not add internal formats. Since you can already
pass GL_FLOAT to glTexImage2D this shouldn't pose any additional issues
with those drivers. Note that r200 and i915 already supported this
extension, and they don't support floating-point textures either.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d6a29018119fd414973ad051fc2271c784ef0f1
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Jan 13 15:18:23 2014 -0800
mesa: Fix extension dependency for half-float TexBOs
Half-float TexBOs should require both GL_ARB_half_float_pixel and
GL_ARB_texture_float. This doesn't matter much in practice. Every
driver that supports GL_ARB_texture_buffer_object already supports
GL_ARB_half_float_pixel. We only expose the TexBO extension in core
profiles, and those require GL_ARB_texture_float.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=54b108282836b68b0db7b3c9a9ba096f99d65f16
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Tue Dec 17 13:38:50 2013 -0800
meta: Silence unused parameter warning in _mesa_meta_CopyTexSubImage
drivers/common/meta.c: In function '_mesa_meta_CopyTexSubImage':
drivers/common/meta.c:3744:52: warning: unused parameter 'rb' [-Wunused-parameter]
Unfortunately, the parameter can't just be removed because it is part of
the dd_function_table::CopyTexSubImage interface.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d156281cfe8f2ceeb562afda4984972028a74e86
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 16 19:07:24 2013 -0800
meta: Silence unused parameter warning in setup_drawpix_texture
drivers/common/meta.c: In function 'setup_drawpix_texture':
drivers/common/meta.c:1572:30: warning: unused parameter 'texIntFormat' [-Wunused-parameter]
setup_drawpix_texture has never used this paramater. Before the
refactor commit 04f8193aa it was used in several locations. After that
commit, texIntFormat was only used in alloc_texture.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
More information about the mesa-commit
mailing list