summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-08-23squash! st/glsl_to_tgsi: inline src_register into translate_srctgsi-const-2dNicolai Hähnle1-1/+1
v2: fix input array handling
2017-08-23radeonsi: add an assertion that only two-dimensional constant references are ↵Nicolai Hähnle1-0/+1
used
2017-08-23gallium/radeon: always use two-dimensional constant referencesNicolai Hähnle1-18/+18
2017-08-23gallium/tests: always use two-dimensional constant referencesNicolai Hähnle3-10/+10
2017-08-23pp: always use two-dimensional constant referencesNicolai Hähnle1-10/+10
2017-08-23gallium/hud: always use two-dimensional constant referencesNicolai Hähnle1-4/+4
2017-08-23nine: always generate two-dimensional constant file accessesNicolai Hähnle2-7/+5
2017-08-23st/glsl_to_tgsi: inline src_register into translate_srcNicolai Hähnle1-74/+76
src_register has no meaningful standalone use, it only makes sense when called from translate_src.
2017-08-23st/glsl_to_tgsi: ir_load_ubo always has a second indexNicolai Hähnle1-2/+1
2017-08-23tgsi/ureg: always emit constants (and their decls) as 2DNicolai Hähnle1-15/+7
2017-08-23gallium: all drivers should accept two-dimensional constant buffer indexingNicolai Hähnle2-9/+4
Most older drivers seem to just ignore the Dimension setting, so virtually no changes should be needed.
2017-08-23radeonsi: fix wrong assertion in si_init_bindless_descriptors()Samuel Pitoiset1-1/+1
Bad mistake, sorry. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2017-08-23radeon/video: Return false explicitly for HEVC if not the caseLeo Liu1-0/+1
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-08-23gallium/docs: Fix the math formula of U2I64Gwan-gyeong Mun1-2/+2
before: dst.xy = (uint64_t) src0.x dst.zw = (uint64_t) src0.y after: dst.xy = (int64_t) src0.x dst.zw = (int64_t) src0.y Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-08-23gallium/docs: Add missing word "Not"Gwan-gyeong Mun1-1/+1
Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-08-23tgsi: store opcode mnemonics in a separate tableNicolai Hähnle2-6/+16
They are only used for debug info. Together with making tgsi_opcode_info::opcode a bitfield, this reduces the size of tgsi_opcode_info on 64-bit systems from 24 bytes to 4 bytes, and makes the whole data structure a bit more linker friendly. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23gallium: use tgsi_get_opcode_name instead of tgsi_opcode_info::mnemonicNicolai Hähnle5-7/+10
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23tgsi: macro-ify the opcodes tableNicolai Hähnle3-251/+263
So we can easily re-arrange members of tgsi_opcode_info, and readers of the code don't have to guess what all the 0s mean. Mostly done with regex search&replace. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23tgsi: remove post_indent from some 64-bit opcodesNicolai Hähnle1-6/+6
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23tgsi: reduce tgsi_opcode_info::pre_dedent and post_indent to 1 bitNicolai Hähnle1-2/+2
It's not clear why they were ever 2 bits to begin with. Perhaps the original intent was to use signed values, but that doesn't seem to have ever been the case in master. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23gallium/radeon: fix saving multi-part command streamsNicolai Hähnle1-1/+1
Use the correct type to fix pointer arithmetic. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23ac/debug: invoke valgrind checks while parsing IBsNicolai Hähnle1-0/+20
Help catch garbage data written into IBs. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23ac/debug: annotate IB dumps with the raw valuesNicolai Hähnle1-18/+66
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23ac/debug: use an explicit getter for fetching words from the IBNicolai Hähnle1-153/+215
Guard against out-of-bounds accesses, and prepare for upcoming changes. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23radeonsi: update comment describing indices into sctx->descriptorsNicolai Hähnle1-6/+5
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23util: fix valgrind errors when dumping pipe_draw_infoNicolai Hähnle1-3/+9
Various index-related fields are only initialized when required, so they should only be dumped in those cases. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23radeonsi: do not assert when reserving bindless slot 0Samuel Pitoiset1-1/+4
When assertions were disabled, the compiler removed the call to util_idalloc_alloc() and the first allocated bindless slot was 0 which is invalid per the spec. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-08-23radeonsi: rename some bindless-related helper functionsSamuel Pitoiset1-21/+21
I think it makes more sense. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-23radeonsi: minor cleanups in si_make_{texture,image}_handle_resident()Samuel Pitoiset1-12/+12
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-22Android: gallium_dri: pass dri.sym to linkerRob Herring2-0/+8
Pass the dri.sym version script to the linker. This ensures only explicitly exported symbols are exported and shrinks the library by up to 60KB. HAVE_DLADDR also needs to be set so that __driDriverExtensions is defined. We need to pass "--undefined-version" because the Android build system sets --no-undefined-version by default and we get an error on driver specific symbols if those drivers are disabled without the option. Suggested-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Rob Herring <robh@kernel.org>
2017-08-22st/va: enable P016 format i.e. reallocate buffer if format changedLeo Liu1-0/+12
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-08-22radeon/vcn: enable P016 mode supportLeo Liu1-7/+11
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-08-22radeon/vcn: correct target buffer pitch calculationLeo Liu1-1/+1
since the way should be as same as UVD Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-08-22anv: Check that in_fence fd is valid before closing it.Francisco Jerez1-1/+2
Probably harmless, but will overwrite errno with a failure status code. Reported by coverity. CID 1416600: Argument cannot be negative (NEGATIVE_RETURNS) Fixes: 5c4e4932e02 (anv: Implement support for exporting semaphores as FENCE_FD) Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2017-08-22anv: Add error handling to setup_empty_execbuf().Francisco Jerez1-9/+13
The anv_execbuf_add_bo() call can actually fail in practice, which should cause the QueueSubmit operation to fail. Reported by Coverity. CID: 1416606: Unchecked return value (CHECKED_RETURN) Fixes: 017cdb10cf (anv: Submit a dummy batch when only semaphores are provided.) Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2017-08-22tgsi/scan: fix uses_doubleMarek Olšák1-2/+8
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-08-22gallium: remove TGSI opcode SCSMarek Olšák24-503/+18
use COS+SIN instead. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Acked-by: Jose Fonseca <jfonseca@vmware.com>
2017-08-22gallium/u_blitter: don't use boolean, TRUE, FALSEMarek Olšák2-73/+73
v2: cherry-picked from the bigger patch series Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1) Tested-by: Brian Paul <brianp@vmware.com>
2017-08-22gallium/u_simple_shaders: do util_make_layered_clear_vertex_shader differentlyMarek Olšák3-25/+19
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Tested-by: Brian Paul <brianp@vmware.com>
2017-08-22gallium/u_blitter: remove get_next_surface_layer callbackMarek Olšák2-15/+1
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Tested-by: Brian Paul <brianp@vmware.com>
2017-08-22st/glsl_to_tgsi: fix getting the image type for array of structs (again)Samuel Pitoiset1-5/+3
We want the type of the field, not of the struct. This fixes a regression in the following piglit test: arb_bindless_texture/compiler/images/arrays-of-struct.frag Fixes: 49d9286a3f ("glsl: stop copying struct and interface member names") Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-08-22gallium: remove TGSI opcode BREAKCMarek Olšák13-133/+7
Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-08-22gallium: remove TGSI opcode XPDMarek Olšák24-539/+41
use MUL+MAD+MOV instead. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2017-08-22gallium: remove TGSI opcode DPHMarek Olšák22-257/+22
use DP4 or DP3 + ADD. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2017-08-22gallium: remove TGSI opcode DP2AMarek Olšák17-183/+6
use DP3 instead. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2017-08-22gallium: remove TGSI_OPCODE_CALLNZMarek Olšák9-23/+4
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2017-08-22gallium: remove TGSI FENCE opcodesMarek Olšák5-56/+13
use MEMBAR instead Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2017-08-22gallium: remove TGSI opcodes PUSHA, POPA, SAD, TXQ_LZMarek Olšák13-129/+23
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2017-08-22radeonsi: emit VGT_REUSE_OFF in the right placeMarek Olšák2-8/+9
clip_regs aren't marked dirty when writes_viewport_index is changed. Cc: 17.2 <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-08-22radeonsi: add support for TGSI opcodes DCEIL, DFLR, DROUND, DSSG, DTRUNCMarek Olšák2-1/+15
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>