[Mesa-dev] [PATCH 04/12] i965/fs/skl+: Use lcd2dms_w instead of lcd2dms

Ian Romanick idr at freedesktop.org
Tue Sep 22 15:10:38 PDT 2015


On 09/17/2015 09:00 AM, Neil Roberts wrote:
> In order to support 16x MSAA, skl+ has a wider version of lcd2dms that
> takes two parameters for the MCS data. This patch makes it allocate a
> register that is twice as big for the MCS data and then always use
> the wider version.
> ---
>  src/mesa/drivers/dri/i965/brw_defines.h        |  4 ++++
>  src/mesa/drivers/dri/i965/brw_disasm.c         |  1 +
>  src/mesa/drivers/dri/i965/brw_fs.cpp           | 27 ++++++++++++++++++++++++--
>  src/mesa/drivers/dri/i965/brw_fs_generator.cpp |  5 +++++
>  src/mesa/drivers/dri/i965/brw_fs_visitor.cpp   |  9 ++++++---
>  src/mesa/drivers/dri/i965/brw_shader.cpp       |  5 +++++
>  6 files changed, 46 insertions(+), 5 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
> index 8fc8ceb..2d5b67d 100644
> --- a/src/mesa/drivers/dri/i965/brw_defines.h
> +++ b/src/mesa/drivers/dri/i965/brw_defines.h
> @@ -969,6 +969,8 @@ enum opcode {
>     FS_OPCODE_TXB_LOGICAL,
>     SHADER_OPCODE_TXF_CMS,
>     SHADER_OPCODE_TXF_CMS_LOGICAL,
> +   SHADER_OPCODE_TXF_CMS_W,
> +   SHADER_OPCODE_TXF_CMS_W_LOGICAL,
>     SHADER_OPCODE_TXF_UMS,
>     SHADER_OPCODE_TXF_UMS_LOGICAL,
>     SHADER_OPCODE_TXF_MCS,
> @@ -1517,10 +1519,12 @@ enum brw_message_target {
>  #define GEN7_SAMPLER_MESSAGE_SAMPLE_GATHER4_PO   17
>  #define GEN7_SAMPLER_MESSAGE_SAMPLE_GATHER4_PO_C 18
>  #define HSW_SAMPLER_MESSAGE_SAMPLE_DERIV_COMPARE 20
> +#define GEN9_SAMPLER_MESSAGE_SAMPLE_LD2DMS_W     28
>  #define GEN7_SAMPLER_MESSAGE_SAMPLE_LD_MCS       29
>  #define GEN7_SAMPLER_MESSAGE_SAMPLE_LD2DMS       30
>  #define GEN7_SAMPLER_MESSAGE_SAMPLE_LD2DSS       31
>  
> +

Spurious whitespace change.



More information about the mesa-dev mailing list