Mesa (master): 50 new commits
Emil Velikov
evelikov at kemper.freedesktop.org
Thu Jan 22 22:16:49 UTC 2015
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8751734613d3476f46ef1efe119a6892b3ecfa02
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Jan 7 10:27:23 2015 +0100
st/nine: Correctly handle when ff vs should have no texture coord input/output
Previous code semantic was:
. if ff ps will not run a ff stage, then do not output texture coords for this stage
for vs
. if XYZRHW is used (position_t), use only the mode where input coordinates are copied
to the outputs.
Problem is when apps don't give texture inputs. When apps precise PASSTHRU, it means
copy texture coord input to texture coord output if there is such input. The case
where there is no texture coord input wasn't handled correctly.
Drivers like r300 dislike when vs has inputs that are not fed.
Moreover if the app uses ff vs with a programmable ps, we shouldn't look at
what are the parameters of the ff ps to decide to output or not texture
coordinates.
The new code semantic is:
. if XYZRHW is used, restrict to PASSTHRU
. if PASSTHRU is used and no texture input is declared, then do not output
texture coords for this stage
The case where ff ps needs a texture coord input and ff vs doesn't output
it is not handled, and should probably be a runtime error.
This fixes 3Dmark05, which uses ff vs with programmable ps.
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=77fcff37cfdcc762ef0e0c5da3e9ce7addc18440
Author: Axel Davy <axel.davy at ens.fr>
Date: Mon Jan 5 16:26:27 2015 +0100
st/nine: Change comment relating to vertex shader inputs not matching declaration
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8a74410f16b8a01da329975d10b631cb2a928e5
Author: Axel Davy <axel.davy at ens.fr>
Date: Sat Jan 3 11:29:40 2015 +0100
st/nine: Allocate vs constbuf buffer for indirect addressing once.
When the shader does indirect addressing on the constants,
we allocate a temporary constant buffer to which we copy
the constants from the app given user constants and
the constants filled in the shader.
This patch makes this buffer be allocated once.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Tiziano Bacocco <tizbac2 at gmail.com>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0f75044c8d2793b6a5bd9832c57c5d199822486
Author: Axel Davy <axel.davy at ens.fr>
Date: Fri Jan 2 14:38:01 2015 +0100
st/nine: Allocate the correct size for the user constant buffer
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9cbea9dbc75630061236c9858cbc0e2b5b18974
Author: Axel Davy <axel.davy at ens.fr>
Date: Fri Jan 2 14:22:17 2015 +0100
st/nine: Add variables containing the size of the constant buffers
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a721987077ae22e0c373ea118113361aada2024e
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 7 13:42:41 2014 +0100
st/nine: Fix sm3 relative addressing for non-debug build
Relative addressing needs the constant buffer to get all
the correct constants, even those defined by the shader.
The code to copy the shader constants to the constant buffer
was enabled only for debug build. Enable it always.
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b7a9cfddb1b8b47aeb2b466f66973d962555542
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 7 00:14:19 2014 +0100
st/nine: Remove unused code for ps
Since constant indirect adressing is not allowed for ps,
we can remove our code to handle that.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9690bf33d7af835eb36d9e4c5928ac8483ffeeaa
Author: Axel Davy <axel.davy at ens.fr>
Date: Sat Dec 6 22:26:50 2014 +0100
st/nine: Correct rules for relative adressing and constants.
relative adressing for constants is possible only for vs float
constants.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bce94ce831492333dae1b85d4387c66fdbfabf57
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 28 14:56:02 2014 +0100
st/nine: Implement TEXREG2AR, TEXREG2GB and TEXREG2RGB
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e23b64c15927225042b8caf7fdc549194610051
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 28 14:46:01 2014 +0100
st/nine: Implement TEXDP3TEX
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=09eb1e901f4d8e8b18675eb92e5f43dcbd831501
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 28 14:42:33 2014 +0100
st/nine: Implement TEXDP3
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f19e699368405f5fe74efe7b483f032c1a2c69be
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 28 14:38:25 2014 +0100
st/nine: Implement TEXDEPTH
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3676ab02fbf14708c4aab94480d841003f33fcc7
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 28 14:26:12 2014 +0100
st/nine: Implement TEXM3x3SPEC
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b9f079ae3ebd1dcd50d1816d7835ec62f3a7782
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 28 14:21:15 2014 +0100
st/nine: Implement TEXM3x2TEX
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdff111dc8ce95c554371ac5aaaf611aa497c0f8
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 28 14:18:26 2014 +0100
st/nine: implement TEXM3x2DEPTH
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7865210670a735f268044b0c388a4895bed1ea4c
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 28 13:05:15 2014 +0100
st/nine: Fix TEXM3x3 and implement TEXM3x3VSPEC
The fix is that this line:
"src[s] = tx->regs.vT[s];" is wrong if s doesn't start from 0.
Instead access tx->regs.vT directly when needed.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1259544e365c67ab60f0c67b7e6de6537cca793
Author: Axel Davy <axel.davy at ens.fr>
Date: Thu Jan 8 22:21:20 2015 +0100
st/nine: Fill missing dst and src number for some instructions.
Not filling them correctly results in bad padding and later crash.
Reviewed-by: David Heidelberg <david at ixit.cz>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5399119fb1ea646880c5e8a54e4c7f789be4c574
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 16:28:56 2014 +0100
st/nine: Implement TEXCOORD special behaviours
texcoord for ps < 1_4 should clamp between 0 and 1 the values.
texcrd (texcoord ps 1_4) does not clamp and can be used with
two modifiers _dw and _dz that means the channels are divided
by w or z.
Implement those in shared code, since the same modifiers can be used
for texld ps 1_4.
v2: replace DIV by RCP + MUL
v3: Remove an useless MOV
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=30704bbc6e56e27b0dac325165133e84351db884
Author: Axel Davy <axel.davy at ens.fr>
Date: Fri Dec 26 11:14:05 2014 +0100
st/nine: Fix CALLNZ implementation
Nothing seems to indicates the negation modifier would be stored in the
instruction flags instead of the source modifier. tx_src_param has
already handled it if it is in the source modifier.
In addition,
when the card supports native integers, the boolean
are stored in 32 bits int and are equal to
0 or 0xFFFFFFFF.
Given 0xFFFFFFFF is NaN if it was a float, better use
UIF than IF.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6378d749379f7fedd668148e09dd032b8ce9a212
Author: Axel Davy <axel.davy at ens.fr>
Date: Thu Dec 25 16:50:09 2014 +0100
st/nine: Fix some fixed function pipeline operation
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=018407b5d8ce894815f940480c52e9791beb9e97
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 24 09:58:49 2014 +0100
st/nine: Clamp ps 1.X constants
This is wine (and windows) behaviour.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8bbc5e27810a005b8e0c89ab1016a5ba6cff73d2
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 15:58:34 2014 +0100
st/nine: Remove duplicated code for ps texcoord input declaration
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ca67f881040b4f3ecdf9b91a7f3f0bf51cf1544
Author: Axel Davy <axel.davy at ens.fr>
Date: Thu Dec 25 11:37:28 2014 +0100
st/nine: Fix CND implementation
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Tiziano Bacocco <tizbac2 at gmail.com>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd055176cc3ef716c5ad10459a0d0073f2b8da71
Author: Axel Davy <axel.davy at ens.fr>
Date: Fri Jan 2 14:57:00 2015 +0100
st/nine: Match REP implementation to LOOP
Previous implementation was behaving fine, but improve it by:
. Improved documentation
. Decreasing counter (comparing to 0 is likely to be faster than to constant)
. Move the counter update at the end for better performance for shaders that
break the loop earlier than when the count is done.
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a8e5e48be0bad4606b2d5d7ba736a3d2a277c55
Author: Axel Davy <axel.davy at ens.fr>
Date: Mon Dec 8 15:38:28 2014 +0100
st/nine: Rewrite LOOP implementation, and a0 aL handling
Previous implementation didn't work well with nested loops.
Instead of using several address registers, put a0 and aL
into normal registers, and copy them to one address register when
we need to use them.
Wine tests loop_index_test() and nested_loop_test() now pass correctly.
Fixes r600g crash while loading Bioshock -
bug https://bugs.freedesktop.org/show_bug.cgi?id=85696
Tested-by: David Heidelberg <david at ixit.cz>
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9aa9a0addee01201d28a7bed10f7e320af591a1
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 15:50:53 2014 +0100
st/nine: Correct LOG on negative values
We should take the absolute value of the input.
Also return -FLT_MAX instead of -Inf for an input of 0.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f5e8e3fb806ef8516a7bd5fabdce4cc24e4c9636
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 15:31:44 2014 +0100
st/nine: Handle NRM with input of null norm
When the input's xyz are 0.0, the output
should be 0.0. This is due to the fact that
Inf * 0 = 0 for dx9. To handle this case,
cap the result of RSQ to FLT_MAX. We have
FLT_MAX * 0 = 0.
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2487f7357449ee520a59f6d81506d297aca752f2
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 15:28:42 2014 +0100
st/nine: Handle RSQ special cases
We should use the absolute value of the input as input to ureg_RSQ.
Moreover, an input of 0.0 should return FLT_MAX.
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c12f8c208882a7e9aac0c488c08ee1771ead5a0d
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 15:14:07 2014 +0100
st/nine: Fix POW implementation
POW doesn't match directly TGSI, since we should
take the absolute value of src0.
Fixes black textures in some games
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0dd9ca9854b27104176d961d5c8b37b1e0637e5
Author: Axel Davy <axel.davy at ens.fr>
Date: Fri Dec 26 11:02:08 2014 +0100
st/nine: Fix typo for M4x4
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53dc992f204678acb9af9d1b11c1be371400930c
Author: Axel Davy <axel.davy at ens.fr>
Date: Fri Dec 26 09:22:26 2014 +0100
st/nine: Correctly declare NineTranslateInstruction_Mkxn inputs
Let's say we have c1 and c2 declared in the shader and c0 given by the app
Then here we would have read c0, c1 and c2 given by the app, instead
of the correct c0, c1, c2.
This correction fixes several issues in some games.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fb58a74a04df02904317acfbd383f53305eed67
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 14:47:24 2014 +0100
st/nine: Saturate oFog and oPts vs outputs
According to docs and Wine, these two vs outputs have
to be saturated.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a21483818110a1b474ea140f7e279f5960be7f30
Author: Axel Davy <axel.davy at ens.fr>
Date: Mon Dec 22 18:44:06 2014 +0100
st/nine: Remove some shader unused code
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d08c7b0b880a4d5afdeac4dd5b26e2ad1c10e9da
Author: Axel Davy <axel.davy at ens.fr>
Date: Fri Jan 2 13:42:11 2015 +0100
st/nine: Convert integer constants to floats before storing them when cards don't support integers
The shader code is already behaving as if they are floats when the the card doesn't support integers
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9d18fe39f7b4f628af23b78576e961fd452921f
Author: Axel Davy <axel.davy at ens.fr>
Date: Fri Jan 2 13:00:06 2015 +0100
st/nine: Rework of boolean constants
Convert them to shader booleans at earlier stage.
Previous code is fine, but later patch will make
integers being converted at earlier stage, so do
the same for booleans
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=77f0ecf9cead20ee6f61149f66663258cebd6179
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 7 18:11:40 2014 +0100
st/nine: Add ATI1 and ATI2 support
Adds ATI1 and ATI2 support to nine.
They map to PIPE_FORMAT_RGTC1_UNORM and PIPE_FORMAT_RGTC2_UNORM,
but need special handling.
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0b5430322406a521b8a75468452ac5d4ce86750
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 23:33:07 2014 +0100
st/nine: Check if srgb format is supported before trying to use it.
According to msdn, we must act as if user didn't ask srgb if we don't
support it.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=82810d3b660dfeef53a18c0d48914783e2999b2a
Author: Stanislaw Halik <sthalik at misaki.pl>
Date: Thu Dec 4 16:52:22 2014 +0100
st/nine: Hack to generate resource if it doesn't exist when getting view
Buffers in the MANAGED pool are supposed to have the content in a ram buffer,
a copy in VRAM if there is enough memory (driver manages memory and decide when
to delete the buffer in VRAM).
This is not implemented properly in nine, and a VRAM copy is going to be created
when the RAM memory is filled, and the VRAM copy will get synced with the RAM
memory updates.
Due to some issues (in the implementation or in app logic), it can happen
we try to create a sampler view of the resource while we haven't created the
VRAM resource. This hack creates the resource when we hit this case, which prevents
crashing, but doesn't help with the resource content.
This fixes several games crashing at launch.
Acked-by: Axel Davy <axel.davy at ens.fr>
Acked-by: David Heidelberg <david at ixit.cz>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Stanislaw Halik <sthalik at misaki.pl>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=47280d777d33c8a78fb7286892071ef31c12f604
Author: Axel Davy <axel.davy at ens.fr>
Date: Tue Dec 2 23:33:37 2014 +0100
st/nine: NineBaseTexture9: update sampler view creation
While previous code was having the correct behaviour in general,
this new code is more readable (without checking all gallium formats
manually) and has a more defined behaviour for depth stencil resources.
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0abfb80dacf80c1f2d0a6a4142b9ab84695aa9e7
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 7 16:51:49 2014 +0100
st/nine: Return D3DERR_INVALIDCALL when trying to create a texture of bad format
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d2c22e64844e20f9a52bffe2b934079a4121886
Author: Axel Davy <axel.davy at ens.fr>
Date: Wed Dec 3 00:07:26 2014 +0100
st/nine: Fix crash when deleting non-implicit swapchain
The implicit swapchains are destroyed when the device instance is
destroyed. However for non-implicit swapchains, it is not the case,
and the application can have kept an reference on the swapchain
buffers to reuse them.
Fixes problems with battle.net launcher.
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
Tested-by: Nick Sarnie <commendsarnex at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=92321611787207f8f2c02a226c1370f85cb99573
Author: Axel Davy <axel.davy at ens.fr>
Date: Tue Dec 2 22:44:37 2014 +0100
st/nine: CubeTexture: fix GetLevelDesc
This->surfaces contains the surfaces associated to the levels
and faces. This->surfaces[6*Level] is what we want here,
since it gives us a face descriptor for the level 'Level'.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=18c7e702262425759cafddf7cc6d58543d97d7b3
Author: Axel Davy <axel.davy at ens.fr>
Date: Tue Dec 2 22:18:30 2014 +0100
st/nine: NineBaseTexture9: fix setting of last_layer
Use same similar settings as u_sampler_view_default_template
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=05e20e10451461a1fde3634da1eec3c1ec1b17a2
Author: Axel Davy <axel.davy at ens.fr>
Date: Thu Dec 25 11:04:10 2014 +0100
st/nine: Correctly advertise D3DPMISCCAPS_CLIPTLVERTS
The cap means D3DFVF_XYZRHW vertices will see clipping.
This is not the case when
PIPE_CAP_TGSI_VS_WINDOW_SPACE_POSITION is supported, since
it'll disable clipping.
Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc8898918900a584b1783c99e77b6310f3834f11
Author: Xavier Bouchoux <xavierb at gmail.com>
Date: Wed Dec 17 23:10:04 2014 +0100
st/nine: Fix D3DRS_POINTSPRITE support
It's done by testing the existence of the point sprite output register *after* parsing the vertex shader.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Reviewed-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2f2a550cf590ec1c9c4d94e07e1f0a0c837f891
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 7 16:46:28 2014 +0100
st/nine: Add new texture format strings
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=072e2ba8e18e62fdaae4780b68b93a956931f4a2
Author: Xavier Bouchoux <xavierb at gmail.com>
Date: Mon Dec 8 23:28:28 2014 +0100
st/nine: Add missing c++ declaration for IDirect3DVolumeTexture9
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Reviewed-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8bb550b958efcbc658f48cb3721c68e97415a1e1
Author: Xavier Bouchoux <xavierb at gmail.com>
Date: Mon Dec 8 23:31:13 2014 +0100
st/nine: Additional defines to d3dtypes.h
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Reviewed-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
Cc: "10.4" <mesa-stable at lists.freedesktop.org>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3bc75fcf2298315a81385e527a1e6f28d7d8c0bf
Author: Axel Davy <axel.davy at ens.fr>
Date: Sun Dec 21 13:03:47 2014 +0100
st/nine: Fix clip state logic
The clip state was reset everytime, incurring an overhead.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=23fae79735c3460d487ba5367aaf00db5fadbdfd
Author: David Heidelberger <d.okias at gmail.com>
Date: Sun Dec 28 02:44:53 2014 +0100
st/nine: query: remove unused variable (trivial)
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: David Heidelberg <david at ixit.cz>
More information about the mesa-commit
mailing list