mesa/src
Samuel Iglesias Gonsálvez 7d5cdb7675 i965: Defeat the register stride checker in pull uniform messages.
Pulling DF uniforms from pull constant buffer generates messages like:
    send(4)         g12<1>DF        g12<0,1,0>F
         sampler ld SIMD4x2 Surface = 1 Sampler = 0 mlen 1 rlen 1

which produces GPU hangs in Cherryview/Braswell:

    "For 64-bit Align1 operation or multiplication of dwords in CHV,
     source horizontal stride must be aligned to qword."

This seems to be documented in the Cherryview PRM, Volume 7, Page 843:

    "When source or destination datatype is 64b or operation is integer
     DWord multiply, regioning in Align1 must follow these rules:

     1. Source and Destination horizontal stride must be aligned to the
        same qword."

We should set the destination type to UD, D, or F so that
the register stride checker doesn't notice.  The destination type of
send messages is basically irrelevant anyway.

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95462
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
(cherry picked from commit a0ed8503b7)
2016-06-15 09:29:13 +01:00
..
compiler glsl: make sure UBO arrays are sized in ES 2016-06-15 09:29:13 +01:00
egl egl: android: don't add the image loader extension for !render_node 2016-06-07 12:35:40 +01:00
gallium clover: Update OpenCL version string to match OpenGL 2016-06-15 09:29:13 +01:00
gbm gbm: remove define _DEFAULT_SOURCE 2016-05-23 12:09:11 +01:00
getopt
glx glx: fix crash with bad fbconfig 2016-06-14 15:48:39 +01:00
gtest
hgl
intel anv/pipeline: Don't dereference NULL dynamic state pointers 2016-06-15 09:29:12 +01:00
loader loader: add a libdrm case for loader_get_device_name_for_fd 2016-04-21 14:41:41 +01:00
mapi mesa: add drawbuffer argument to ClearNamedFramebufferfi 2016-06-15 09:29:10 +01:00
mesa i965: Defeat the register stride checker in pull uniform messages. 2016-06-15 09:29:13 +01:00
util mesa: Add .gitignore entries for make check binaries 2016-05-25 09:41:44 -07:00
Makefile.am automake: get in-tree `make distclean' working again. 2016-06-15 09:29:11 +01:00
SConscript glsl: move to compiler/ 2016-01-26 16:08:33 +00:00