Skip to content
Snippets Groups Projects
  1. May 27, 2015
  2. May 19, 2015
  3. May 18, 2015
    • Faith Ekstrand's avatar
      i965: Use NIR by default for vertex shaders on GEN8+ · 42298b05
      Faith Ekstrand authored
      
      GLSL IR vs. NIR shader-db results for SIMD8 vertex shaders on Broadwell:
      
         total instructions in shared programs: 2742062 -> 2681339 (-2.21%)
         instructions in affected programs:     1514770 -> 1454047 (-4.01%)
         helped:                                5813
         HURT:                                  1120
      
      The gained programs are ARB vertext programs that were previously going
      through the vec4 backend.  Now that we have prog_to_nir, ARB vertex
      programs can go through the scalar backend so they show up as "gained" in
      the shader-db results.
      
      Acked-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
      Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
      Acked-by: default avatarMatt Turner <mattst88@gmail.com>
      42298b05
    • Rob Clark's avatar
      freedreno: fence fix · e6f912f0
      Rob Clark authored
      
      A fence can outlive the ctx, so we shouldn't deref the ctx to get at the
      screen.  We need some updates in libdrm_freedreno API to completely
      handle fences properly, but this is at least an improvement.
      
      Signed-off-by: default avatarRob Clark <robclark@freedesktop.org>
      e6f912f0
    • Ben Widawsky's avatar
      i965: Add gen8 blend state · 8427ad91
      Ben Widawsky authored
      
      OLD:
      0x00007340:      0x00800000:    BLEND:
      0x00007344:      0x84202100:    BLEND:
      
      NEW:
      0x00007340:      0x00800000:    BLEND: Alpha blend/test
      0x00007344:      0x0000000b84202100: BLEND_ENTRY00:
                              Color Buffer Blend factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha)
                              function ADD,ADD (color, alpha), Disables: ----
      0x0000734c:      0x0000000b84202100: BLEND_ENTRY01:
                              Color Buffer Blend factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha)
                              function ADD,ADD (color, alpha), Disables: ----
      0x00007354:      0x0000000b84202100: BLEND_ENTRY02:
                              Color Buffer Blend factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha)
                              function ADD,ADD (color, alpha), Disables: ----
      0x0000735c:      0x0000000b84202100: BLEND_ENTRY03:
                              Color Buffer Blend factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha)
                              function ADD,ADD (color, alpha), Disables: ----
      0x00007364:      0x0000000b84202100: BLEND_ENTRY04:
                              Color Buffer Blend factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha)
                              function ADD,ADD (color, alpha), Disables: ----
      0x0000736c:      0x0000000b84202100: BLEND_ENTRY05:
                              Color Buffer Blend factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha)
                              function ADD,ADD (color, alpha), Disables: ----
      0x00007374:      0x0000000b84202100: BLEND_ENTRY06:
                              Color Buffer Blend factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha)
                              function ADD,ADD (color, alpha), Disables: ----
      0x0000737c:      0x0000000b84202100: BLEND_ENTRY07:
                              Color Buffer Blend factor ONE,ONE,ONE,ONE (src,dst,src alpha, dst alpha)
                              function ADD,ADD (color, alpha), Disables: ----
      
      v2: Line length fixes, and const usage (Topi)
      Safer initialization of name string (Topi)
      
      Signed-off-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: default avatarTopi Pohjolainen <topi.pohjolainen@intel.com>
      8427ad91
    • Ben Widawsky's avatar
      i965: Add renderbuffer surface indexes to debug · fa284d6f
      Ben Widawsky authored
      
      This patch is optional in the series. It does make the output much cleaner, but
      there is some risk.
      
      Sample output (v3):
      0x00007e80:      0x231d7000:  SURF000: 2D R8G8B8A8_UNORM  VALIGN4 HALIGN4 Y-tiled
      0x00007e84:      0x05000000:  SURF000: MOCS: 0x5 Base MIP: 0.0 (0 mips) Surface QPitch: 0
      0x00007e88:      0x009f009f:  SURF000: 160x160 [AUX_NONE]
      0x00007e8c:      0x0000027f:  SURF000: 1 slices (depth), pitch: 640
      0x00007e90:      0x00000000:  SURF000: min array element: 0, array extent 1, MULTISAMPLE_1
      0x00007e94:      0x00000000:  SURF000: x,y offset: 0,0, min LOD: 0
      0x00007e98:      0x00000000:  SURF000: AUX pitch: 0 qpitch: 0
      0x00007e9c:      0x09770000:  SURF000: Clear color: R(0)G(0)B(0)A(0)
      0x00007ea0:      0x00001000:  SURF000: 0x00001000
      0x00007ea4:      0x00000000:  SURF000: 0x00000000
      0x00007ea8:      0x00000000:  SURF000: 0x00000000
      0x00007eac:      0x00000000:  SURF000: 0x00000000
      0x00007e40:      0x234df000:  SURF001: 2D R11G11B10_FLOAT  VALIGN4 HALIGN16 Y-tiled
      0x00007e44:      0x09000000:  SURF001: MOCS: 0x9 Base MIP: 0.0 (0 mips) Surface QPitch: 0
      0x00007e48:      0x009f009f:  SURF001: 160x160 [AUX_CCS_D (Uncompressed, MULTISAMPLE_COUNT=1)]
      0x00007e4c:      0x0000027f:  SURF001: 1 slices (depth), pitch: 640
      0x00007e50:      0x00000000:  SURF001: min array element: 0, array extent 1, MULTISAMPLE_1
      0x00007e54:      0x00000000:  SURF001: x,y offset: 0,0, min LOD: 0
      0x00007e58:      0x00000001:  SURF001: AUX pitch: 0 qpitch: 0
      0x00007e5c:      0x09770000:  SURF001: Clear color: R(0)G(0)B(0)A(0)
      0x00007e60:      0x0002b000:  SURF001: 0x0002b000
      0x00007e64:      0x00000000:  SURF001: 0x00000000
      0x00007e68:      0x0002a000:  SURF001: 0x0002a000
      0x00007e6c:      0x00000000:  SURF001: 0x00000000
      
      v2: Rebased on Topi's recent series which changed around some of the gen8
      surface setup code.
      
      v3: Use ralloc_asprintf instead of asprintf to be more friendly to non-GNU
      platforms.
      
      Signed-off-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
      fa284d6f
    • Ben Widawsky's avatar
      i965: Add Gen9 surface state decoding · c14bb072
      Ben Widawsky authored
      
      Gen9 surface state is very similar to the previous generation. The important
      changes here are aux mode, and the way clear colors work.
      
      NOTE: There are some things intentionally left out of this decoding.
      
      v2: Redo the string for the aux buffer type to address compressed variants.
      
      v3: Use the shift for compression enable (instead of compression mode) (Topi)
      
      Signed-off-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: default avatarTopi Pohjolainen <topi.pohjolainen@intel.com>
      c14bb072
Loading