History log of /external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.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/i915/i915_fpc_translate.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/i915/i915_fpc_translate.c
8ba1fd339caaf9ad12bd97dda6e92e834c68c6e3 27-Aug-2016 Rhys Kidd <rhyskidd@gmail.com> i915g: Fix typo in i915_translate_instruction()

Noticed this error in a debug message whilst reviewing
https://bugs.freedesktop.org/show_bug.cgi?id=97477

This patch doesn't go towards fixing that bug, but at
least may clarify future debug output.

Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
951bf8b4a64c9793d10e963889e74fc1659ddb4b 28-Apr-2016 Brian Paul <brianp@vmware.com> i915g: s/Elements/ARRAY_SIZE/

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
a2a1a5805fd617e7f3cc8be44dd79b50da07ebb9 21-Jul-2015 Ilia Mirkin <imirkin@alum.mit.edu> gallium: replace INLINE with inline

Generated by running:
git grep -l INLINE src/gallium/ | xargs sed -i 's/\bINLINE\b/inline/g'
git grep -l INLINE src/mesa/state_tracker/ | xargs sed -i 's/\bINLINE\b/inline/g'
git checkout src/gallium/state_trackers/clover/Doxyfile

and manual edits to
src/gallium/include/pipe/p_compiler.h
src/gallium/README.portability

to remove mentions of the inline define.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
e1c4e8aaaafddd0e04cf2a16e28ef8f1e09d8b44 17-May-2015 Marek Olšák <marek.olsak@amd.com> gallium: remove TGSI_SAT_MINUS_PLUS_ONE

It's a remnant of some old NV extension. Unused.

I also have a patch that removes predicates if anyone is interested.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
7bf774034a20e6864d63caf8c65cc424454b1bed 10-Feb-2015 Kenneth Graunke <kenneth@whitecape.org> i915g: Use the actual MIN instruction.

Matt Turner noticed that the hardware has always had a MIN
instruction, but the driver always used MAX+MOV for no
apparent reason.

This should cut an instruction, and a temporary, allowing
more programs to run in hardware.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
a9b07870764db617f199745573bfccddf9b378f9 22-Nov-2014 Stéphane Marchesin <marcheu@chromium.org> i915g: Don't write constants past I915_MAX_CONSTANT

This happens with glsl-convolution-1, where we have 64 constants. This
doesn't make the test pass (we don't have 64 constants anyway, only
32) but this prevents it from crashing.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
877128505431adaf817dc8069172ebe4a1cdf5d8 17-Jan-2014 José Fonseca <jfonseca@vmware.com> s/Tungsten Graphics/VMware/

Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the
old copyright name is creating unnecessary confusion, hence this change.

This was the sed script I used:

$ cat tg2vmw.sed
# Run as:
#
# git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed
#

# Rename copyrights
s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g
/Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./
s/TUNGSTEN GRAPHICS/VMWARE/g

# Rename emails
s/alanh@tungstengraphics.com/alanh@vmware.com/
s/jens@tungstengraphics.com/jowen@vmware.com/g
s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/
s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g
s/keithw\?@tungstengraphics.com/keithw@vmware.com/g
s/michel@tungstengraphics.com/daenzer@vmware.com/g
s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/
s/zack@tungstengraphics.com/zackr@vmware.com/

# Remove dead links
s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g

# C string src/gallium/state_trackers/vega/api_misc.c
s/"Tungsten Graphics, Inc"/"VMware, Inc"/

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
4e861ac4a1f1bdbd28f66e3f15eb45aa45a47bad 04-Sep-2013 Stéphane Marchesin <marcheu@chromium.org> i915g: Add more optimizations

This patch adds liveness analysis to i915g and a couple
optimizations which benefit from it. One interesting
optimization turns (fake) indirect texture accesses into direct
texture accesses (the i915 supports a maximum of 4 indirect
texture accesses). Among other things this fixes a bunch of
piglit tests.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
46205ab8cc03cbda6bbc0c958e277f972973ebfe 12-Jul-2013 Brian Paul <brianp@vmware.com> tgsi: rename the TGSI fragment kill opcodes

TGSI_OPCODE_KIL and KILP had confusing names. The former was conditional
kill (if any src component < 0). The later was unconditional kill.
At one time KILP was supposed to work with NV-style condition
codes/predicates but we never had that in TGSI.

This patch renames both opcodes:
TGSI_OPCODE_KIL -> KILL_IF (kill if src.xyzw < 0)
TGSI_OPCODE_KILP -> KILL (unconditional kill)

Note: I didn't just transpose the opcode names to help ensure that I
didn't miss updating any code anywhere.

I believe I've updated all the relevant code and comments but I'm
not 100% sure that some drivers had this right in the first place.
For example, the radeon driver might have llvm.AMDGPU.kill and
llvm.AMDGPU.kilp mixed up. Driver authors should review their code.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
6ae12bac596ce3a6aa8e09f638ad2cb4a7c18e5c 05-May-2012 Christoph Bumiller <e0425955@student.tuwien.ac.at> gallium/drivers: handle TGSI_OPCODE_CEIL
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
6512bc4e67f0f2b53805d050e11f6a336b505f40 25-Feb-2012 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix fallout from 8e4540ec2a82e72be491bc8fe23c10551d29a96c

Fixes piglit regressions from that change.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
175adf0776d8df066a908b06055f243bd1325a34 23-Jan-2012 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix comment.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
8e4540ec2a82e72be491bc8fe23c10551d29a96c 22-Jan-2012 Stéphane Marchesin <marcheu@chromium.org> i915g: Separate declarations and program in the fragment program struct.

We need this later to fixup fragment programs properly.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
0e57b66fa1d7f4317f20571f19fd2ceb3593f04f 30-Dec-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Allocate tmp for KILP

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=44297
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
c661843ab6adc97b54debaccfb29b897b12ab76d 15-Dec-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Implement KILP.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
527235223abd8b64908b0c21311567e6c7d9920d 24-Sep-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix comment.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
e3c94fac4eb159f8c35798d1ad7515a40f5a2eca 23-Sep-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Don't generate useless swizzles before texture accesses.

That helps reduce the number of texture indirections, which are very limited on i915.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
79a0499369470a2a9b2cb5cfc83b1790283f4556 23-Sep-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix whitespace.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
ef1fa4467f269e70f9f42764d6bfaffdee27cd6a 22-Sep-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Add ifdef'd out code to dump compiled shaders.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
974c49ed176de55aadb335a2956ef5dfec774a23 04-Aug-2011 Stephane Marchesin <marchesin@icps.u-strasbg.fr> i915g: Fix whitespace.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
9726947b681225a5a438eaa7cb70c5fa36ce85ea 14-Jul-2011 Brian Paul <brianp@vmware.com> i915g: move declaration before code
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
2bc5e0e97ba7b6c32f6ff90cb90448173d74b89b 05-Jul-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: introduce the tiny shader optimizer.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
cc78eb63cdc0022684ca6816f258ea4492431916 04-Jul-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Add comment about DDX/DDY.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
5d7609715a44d08f29d4b605c4bea2742a194493 30-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Try to do better in the shader compiler.

- Copy i915c's support for phases, that should allow us to run a coupe more shaders.
- Fix the error messages.
- Still try to proceed when we get a shader that's too long.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
8f0a331040fc6fa700ab2c5f96061844a2289599 29-Jun-2011 Jon TURNEY <jon.turney@dronecode.org.uk> i915g: Move definition of M_PI in i915_fpc_translate.c

Move defintion of M_PI (for the benefit of <math.h> which do not define it), to
before the first use of it

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
1a7e17e44a1129bbd6a0f454fe95b3ce8240cd45 29-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix unimplemented Abs comment.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
fe36bc0c41ee7fd3aa7b364a8301d50613644f71 28-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix comment about sin/cos constants.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
de33b0dd231d646cbbc7ba6c25bf6dd04a96cd86 28-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Add a debug_printf when we get the Abs flag.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
062a1e291fdc0ef69b6677f8ae0e3471047e281d 28-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Improve SIN/COS a bit.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
8dd1e3670ff4d12479475329961693e597b7a3cf 28-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix a bug in facing.

However doesn't work because of limitations in the draw module.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
ef3dac2aff5fda16d7b7662c2c8828f07c9842ae 27-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: initial support for SEMANTIC_FACE.

Doesn't work yet, see TODO.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
811963a7aed4d4ea9a3b2c8ad4db6a5c3f118956 26-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Implement fake DDX/DDY.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
d2f05283d2226f3285dccfc373ee9e314a8c95c8 26-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix gl_FragCoord.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
468c2c08414f0ad07e2c2c2a98506f6390124963 23-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Fix comment.

Reported-by: Marcin Baczynski <marbacz@gmail.com>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
abb436526974bd090853c0927ece0839f9143393 07-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: Do generic remapping.

With complex shaders there are often "holes" in the fs inputs, and we only
have 8 tex coorsd to map those to. To fix this, we remap fs inputs to [0..8].
This lets us to run many more GLSL programs.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
2292025c49f2165b59f578c926d320913b08b1b5 06-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: implement more opcodes.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
0f091333d1ef403a67a8639ac13d9a9bbe93092a 04-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: implement TGSI_OPCODE_SEQ.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
0ce977a66e65ce862f5b29ded6098de91464f304 04-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> i915g: handle varyings properly.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
9f0acfe1384d3236ac30ffca4be96e9531d2e876 04-Mar-2011 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Use tgsi_info from fragment shader instead
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
98b418e56e9592cb796f2f814b3c8b46238d05af 04-Mar-2011 Daniel Vetter <daniel.vetter@ffwll.ch> i915g: use passthough shader for empty fragment programs

The hw doesn't like it - demos/shadowtex is broken. The emitted shader
isn't totally empty though, the depth write fixup gets emitted instead.
Maybe that one is somewhat fishy, too?

Idea for this patch from Jakob Bornecrantz.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
b7a73c72a68dc102ef8522eda8eadf583fd420a5 25-Dec-2010 Jakob Bornecrantz <wallbraker@gmail.com> i915g: Ignore color0 writes all cbufs tgsi property
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
91a4e6d53f83c45c1da9240b6325011d96b61386 24-Nov-2009 Keith Whitwell <keithw@vmware.com> tgsi: rename fields of tgsi_full_src_register to reduce verbosity

SrcRegister -> Register
SrcRegisterInd -> Indirect
SrcRegisterDim -> Dimension
SrcRegisterDimInd -> DimIndirect
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
5b0824dfe5eaf59fa87134e7482b3d147b262901 24-Nov-2009 Keith Whitwell <keithw@vmware.com> tgsi: rename fields of tgsi_full_dst_register to reduce verbosity

DstRegister -> Register
DstRegisterInd -> Indirect
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
fe2b31e4a896167a33d267822b36eb2de0ceecba 24-Nov-2009 Keith Whitwell <keithw@vmware.com> tgsi: rename fields of tgsi_full_declaration to reduce verbosity

DeclarationRange -> Range
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
7d6c8f980d1e23ad6f557d650e89c715861a3b0c 24-Nov-2009 Keith Whitwell <keithw@vmware.com> tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosity

InstructionPredicate -> Predicate
InstructionLabel -> Label
InstructionTexture -> Texture
FullSrcRegisters -> Src
FullDstRegisters -> Dst
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
56ee132f9671f70ff2b3ee04659beac0dfc6126d 24-Nov-2009 Keith Whitwell <keithw@vmware.com> gallium: try and update r300 and nv drivers for tgsi changes

It would be nice if these drivers built under the linux-debug header
so that these types of interface changes can be minimally propogated
into those drivers by people without the hardware. They don't have to
generate a working driver -- though a command-dumping winsys would be
an excellent for regression checking.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
ba1ca28cc62fed71c77902b95ae4ed36c6bf25f8 24-Nov-2009 Keith Whitwell <keithw@vmware.com> gallium: simplify tgsi tokens further

Drop anonymous 'Extended' fields, have every optional token named
explicitly in its parent. Eg. there is now an Instruction.Label flag,
etc.

Drop destination modifiers and other functionality which cannot be
generated by tgsi_ureg.c, which is now the primary way of creating
shaders.

Pull source modifiers into the source register token, drop the second
negate flag. The source register token is now full - if we need to
expand it, probably best to move all of the modifiers to a new token
and have a single flag for it.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
da253319f9e5d37d9c55b975ef9328545a3ac9b4 23-Oct-2009 Keith Whitwell <keithw@vmware.com> gallium: remove extended negate also, and also the ExtSwz token

Likewise, the extended negate functionality hasn't been
used since mesa switched to using tgsi_ureg to build programs,
and has been translating the SWZ opcode internally to a single MAD.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
b9cb74c7f826dfd320f5e5b54aa933898f7ddd3d 23-Oct-2009 Keith Whitwell <keithw@vmware.com> gallium: remove the swizzling parts of ExtSwizzle

These haven't been used by the mesa state tracker since the
conversion to tgsi_ureg, and it seems that none of the
other state trackers are using it either.

This helps simplify one of the biggest suprises when starting off with
TGSI shaders.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
96c9b39a6a9553573fcbdb5fd6db0e9d59768442 13-Oct-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Fix warnings
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c
f00da2a3ff59c1a7104ac25a1c6eba5a6050ad68 30-Sep-2009 Jakob Bornecrantz <jakob@vmware.com> i915g: Drop the simple sufix

None of the other driver have a silly sufix,
so just drop it. Nothing new added in this commit
or any other commit but this is better marketing.
/external/mesa3d/src/gallium/drivers/i915/i915_fpc_translate.c