History log of /external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d995115b1733ec14182e6bb4653b8f8389b87518 19-Dec-2016 Marek Olšák <marek.olsak@amd.com> gallium: remove TGSI_OPCODE_SUB

It's redundant with the source modifier.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
a4ace98a9733b3e83d971f4871c2908749c0e5c8 19-Dec-2016 Marek Olšák <marek.olsak@amd.com> gallium: remove TGSI_OPCODE_ABS

It's redundant with the source modifier.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
b09e4ab13cdde9b0d465c214e6e30452c690eeb1 19-Aug-2016 Brian Paul <brianp@vmware.com> svga: s/INDEX_0D/INDEX_IMMEDIATE32/

Both are zero, but the later is the right token.
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
2e1cfcc431471c68ba79c9323716bed7da79c909 19-Aug-2016 Charmaine Lee <charmainel@vmware.com> svga: add guest statistic gathering interface

With this patch, guest statistic gathering interface is added to
svga winsys interface that can be used to gather svga driver
statistic. The winsys module can then share the statistic info with
the VMX host via the mksstats interface.

The statistic enums used in the svga driver are defined in
svga_stats_count and svga_stats_time in svga_winsys.h

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
479199180871432030d3eebc2822bd7cb3dc6fd6 25-Aug-2015 Charmaine Lee <charmainel@vmware.com> svga: fix indirect non-indexable temp access

If the shader has indirect access to non-indexable temporaries,
convert these non-indexable temporaries to indexable temporary array.
This works around a bug in the GLSL->TGSI translator.

Fixes glsl-1.20/execution/fs-const-array-of-struct-of-array.shader_test
on DX11Renderer.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
60a27ad122128145d28be37e9c0b0bc86a8e5181 23-Jun-2016 Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Remove wrongly repeated words in comments

Clean up misrepetitions ('if if', 'the the' etc) found throughout the
comments. This has been done manually, after grepping
case-insensitively for duplicate if, is, the, then, do, for, an,
plus a few other typos corrected in fly-by

v2:
* proper commit message and non-joke title;
* replace two 'as is' followed by 'is' to 'as-is'.
v3:
* 'a integer' => 'an integer' and similar (originally spotted by
Jason Ekstrand, I fixed a few other similar ones while at it)

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
e0184b3995fa308c125ae8e090d2bbdffd495b5f 25-Apr-2016 Brian Paul <brianp@vmware.com> svga: s/Elements/ARRAY_SIZE/

Standardize on the later macro rather than a mix of both.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
fb523cb6ad3ffef22ab4b9cce9e53859c17c5739 16-Apr-2016 Marek Olšák <marek.olsak@amd.com> gallium: merge PIPE_SWIZZLE_* and UTIL_FORMAT_SWIZZLE_*

Use PIPE_SWIZZLE_* everywhere.
Use X/Y/Z/W/0/1 instead of RED, GREEN, BLUE, ALPHA, ZERO, ONE.
The new enum is called pipe_swizzle.

Acked-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
b283c763425983480f85ed5b92ac8a984b6aa942 31-Mar-2016 Brian Paul <brianp@vmware.com> svga: check TXF instruction's target to determine MSAA

Rather than the currently bound texture. This goes along with the
earlier patch to get away from examining bound textures and sampler
views during shader translation.

Fixes VMware bug 1632739.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
dc9ecf58c0c5c8a97cd41362e78c2fcd9f6e3b80 18-Mar-2016 Brian Paul <brianp@vmware.com> svga: use shader sampler view declarations

Previously, we looked at the bound textures (via the pipe_sampler_views)
to determine texture dimensions (1D/2D/3D/etc) and datatype (float vs.
int). But this could fail in out of memory conditions. If we failed to
allocate a texture and didn't create a pipe_sampler_view, we'd default
to using 0 (PIPE_BUFFER) as the texture type. This led to device errors
because of inconsistent shader code.

This change relies on all TGSI shaders having an SVIEW declaration for
each SAMP declaration. The previous patch series does that.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
2f3d06d9f95982b1dd9733260562e9b6484fc661 18-Feb-2016 Brian Paul <brianp@vmware.com> svga: allow non-contiguous VS input declarations

This fixes a glDrawPixels regression since b63fe0552b5f. The new
quad-drawing utility code uses 3 vertex attributes (xyz, rgba, st).
For glDrawPixels path we don't use the rgba attribute so there's a
gap in the TGSI VS input declarations (INPUT[0] = pos, INPUT[2] =
texcoord). The TGSI->VGPU10 translations code did not handle this
correctly. I missed this because my VM was configured for HWv11
while testing.

Another way to fix this would be to change the tgsi_scan.c code so
that the tgsi_shader_info::num_inputs (and num_outputs) included
the unused inputs/outputs. These counts would then actually be
"max input register index + 1" rather than "number of used inputs".
But that change could impact all drivers so put it off for now.

No regressions found with piglit or typical GL apps.

v2: also update alloc_system_value_index() to use info.file_max[]

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
8cc9a8aa2a97ca9e7a36a993954a3480d44c13d3 20-Sep-2014 Ilia Mirkin <imirkin@alum.mit.edu> tgsi: add ureg support for image decls

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
69f43c2cc903d5973bab2515be51465c9e8f9f9e 07-Jan-2016 Marek Olšák <marek.olsak@amd.com> util/pstipple: allow fragment shader POSITION to be a system value

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
b074a5b02de3dc0e2d0cbb6b9154673153b29525 04-Jan-2016 Charmaine Lee <charmainel@vmware.com> svga: skip vertex attribute instruction with zero usage_mask

In emit_input_declarations(), we are skipping declarations for those
registers that are not being used. But in emit_vertex_attrib_instructions(),
we are still emitting instructions to tweak the vertex attributes even if
they are not being used. This causes an assert in the backend because an
input register is not declared in the shader. This patch fixes the problem
by skipping the instruction if the vertex attribute is not being used.
Changes in this patch is originated from the code snippet from Jose as
suggested in bug 1530161.

Tested with piglit, Heaven, Turbine, glretrace.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
13eb5f596bc8ece3d1805b388aa53917e6158d7b 04-Dec-2015 Edward O'Callaghan <eocallaghan@alterapraxis.com> gallium/drivers: Sanitize NULL checks into canonical form

Use NULL tests of the form `if (ptr)' or `if (!ptr)'.
They do not depend on the definition of the symbol NULL.
Further, they provide the opportunity for the accidental
assignment, are clear and succinct.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
d31481e70ab0da293d4c3010815f643f161b7168 03-Nov-2015 Brian Paul <brianp@vmware.com> svga: implement 'white_fragments' option for VGPU10 fragment shaders

When we emulate XOR logicop mode with blend-subtract, we need to ensure
that the fragment shader always emits white. We had this implemented
for VGPU9, but not VGPU10.

VMware bug 1545492.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
1082735bb69e9f64cb3991a52f0e270902917855 22-Oct-2015 Brian Paul <brianp@vmware.com> svga: detect constant color writes in fragment shaders

Examine the fragment shader to try to detect TGSI shaders which use
"MOV OUT[0], CONST[i]" to write a constant value for the fragment color.
In this case, all fragments will have the same color (unless blending is
enabled).

This is a common case for OpenGL code such as: glColor(), glBegin(),
glVertex(), ..., glEnd() when lighting/fog/etc are disabled. In this
case, the Mesa/gallium state tracker actually generates a simple
"MOV OUT[0], CONST[i]" fragment shader.

This will be used by the next commit to avoid provoking vertex conversion
(creating/rewriting an index buffer) when drawing flat-shaded primitives.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
18a631eb9056857a9ced477e7e3d1a435a906be2 22-Oct-2015 Brian Paul <brianp@vmware.com> svga: fix clip plane regression after recent tgsi_scan change

Before the change "tgsi/scan: use properties for clip/cull distance
writemasks", the tgsi_shader_info::num_written_clipdistance field
was a multiple of four, now it's an accurate count. In the svga
driver, we need a minor change to the loop test.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
f413f1a17c506d5d4474a1baa0556a9e9f554c63 09-Oct-2015 Brian Paul <brianp@vmware.com> svga: use new svga_new_shader_variant() function

To simplify upcoming new HUD shader count implementation.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
e054251ed11e25a080f64b92db9334c9b07c8c76 13-Aug-2015 Brian Paul <brianp@vmware.com> svga: update driver for version 10 GPU interface

This is a squash commit of roughly two years of development work.
Authors include:
Brian Paul
Charmaine Lee
Thomas Hellstrom
Jakob Bornecrantz
Sinclair Yeh
Mingcheng Chen
Kai Ninomiya
MengLin Wu

The driver supports OpenGL 3.3.

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
35bb29d4994efadd1719a147731afa34e78a0be1 07-Aug-2015 Brian Paul <brianp@vmware.com> svga: add new svga_tgsi_vgpu10.c file

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/svga/svga_tgsi_vgpu10.c