~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/mesa/state_tracker/st_cb_rasterpos.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
 * else copy the current attrib.
120
120
 */
121
121
static void
122
 
update_attrib(struct gl_context *ctx, const ubyte *outputMapping,
 
122
update_attrib(struct gl_context *ctx, const uint8_t *outputMapping,
123
123
              const struct vertex_header *vert,
124
124
              GLfloat *dest,
125
125
              GLuint result, GLuint defaultAttrib)
126
126
{
127
127
   const GLfloat *src;
128
 
   const ubyte k = outputMapping[result];
 
128
   const uint8_t k = outputMapping[result];
129
129
   if (k != 0xff)
130
130
      src = vert->data[k];
131
131
   else
145
145
   const GLfloat height = (GLfloat) ctx->DrawBuffer->Height;
146
146
   struct gl_vertex_program *stvp =
147
147
      (struct gl_vertex_program *)ctx->VertexProgram._Current;
148
 
   const ubyte *outputMapping = stvp->result_to_output;
 
148
   const uint8_t *outputMapping = stvp->result_to_output;
149
149
   const GLfloat *pos;
150
150
   GLuint i;
151
151
 
210
210
                             GL_RGBA, GL_FALSE, GL_FALSE, GL_FALSE, 0);
211
211
   _mesa_enable_vertex_array_attrib(ctx, rs->VAO, 0);
212
212
 
213
 
   rs->info.mode = PIPE_PRIM_POINTS;
 
213
   rs->info.mode = MESA_PRIM_POINTS;
214
214
   rs->info.instance_count = 1;
215
215
   rs->draw.count = 1;
216
216
 
274
274
 
275
275
   _mesa_save_and_set_draw_vao(ctx, rs->VAO, VERT_BIT_POS,
276
276
                               &old_vao, &old_vp_input_filter);
 
277
   _mesa_set_varying_vp_inputs(ctx, VERT_BIT_POS &
 
278
                               ctx->Array._DrawVAO->_EnabledWithMapMode);
277
279
 
278
280
   st_feedback_draw_vbo(ctx, &rs->info, 0, &rs->draw, 1);
279
281