radeonsi: move DB_SHADER_CONTROL into db_render_state
[mesa.git] / src / gallium / drivers / radeonsi / si_shader.h
index 81997c0b5867b0ff8981e4858ab6e88633dd3861..9c6b2387ac16410cbd8ba01a124ca08048e059a8 100644 (file)
 #define SI_SGPR_RESOURCE       4
 #define SI_SGPR_RW_BUFFERS     6  /* rings (& stream-out, VS only) */
 #define SI_SGPR_VERTEX_BUFFER  8  /* VS only */
-#define SI_SGPR_START_INSTANCE 10 /* VS only */
+#define SI_SGPR_BASE_VERTEX    10 /* VS only */
+#define SI_SGPR_START_INSTANCE 11 /* VS only */
 #define SI_SGPR_ALPHA_REF      8  /* PS only */
 
-#define SI_VS_NUM_USER_SGPR    11
+#define SI_VS_NUM_USER_SGPR    12
 #define SI_GS_NUM_USER_SGPR    8
 #define SI_PS_NUM_USER_SGPR    9
 
 
 /* VS only parameters */
 #define SI_PARAM_VERTEX_BUFFER 4
-#define SI_PARAM_START_INSTANCE        5
+#define SI_PARAM_BASE_VERTEX   5
+#define SI_PARAM_START_INSTANCE        6
 /* the other VS parameters are assigned dynamically */
 
 /* ES only parameters */
-#define SI_PARAM_ES2GS_OFFSET  6
+#define SI_PARAM_ES2GS_OFFSET  7
 
 /* GS only parameters */
 #define SI_PARAM_GS2VS_OFFSET  4
@@ -138,10 +140,8 @@ struct si_shader {
        unsigned                gs_input_prim;
        unsigned                gs_output_prim;
        unsigned                gs_max_out_vertices;
-       unsigned                ps_conservative_z;
 
        unsigned                nparam;
-       bool                    uses_kill;
        bool                    uses_instanceid;
        bool                    fs_write_all;
        bool                    vs_out_misc_write;
@@ -176,16 +176,16 @@ struct si_pipe_shader {
        struct si_shader                shader;
        struct si_pm4_state             *pm4;
        struct r600_resource            *bo;
+       struct r600_resource            *scratch_bo;
        unsigned                        num_sgprs;
        unsigned                        num_vgprs;
        unsigned                        lds_size;
        unsigned                        spi_ps_input_ena;
+       unsigned                        scratch_bytes_per_wave;
        unsigned                        spi_shader_col_format;
        unsigned                        spi_shader_z_format;
        unsigned                        db_shader_control;
        unsigned                        cb_shader_mask;
-       bool                            cb0_is_integer;
-       unsigned                        sprite_coord_enable;
        union si_shader_key             key;
 };