renderer: do not setup fixed-function point-sprite functionality

This toggle only affect fixed-function fragment-shading, which we don't
use at all. So let's not waste time setting unused state.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent 262b078c3d
commit 66152b2526
  1. 8
      src/vrend_renderer.c

@ -3637,14 +3637,6 @@ static void vrend_draw_bind_samplers_shader(struct vrend_context *ctx,
vrend_apply_sampler_state(ctx, texture, shader_type, i, *sampler_id, tview->srgb_decode); vrend_apply_sampler_state(ctx, texture, shader_type, i, *sampler_id, tview->srgb_decode);
ctx->sub->views[shader_type].old_ids[i] = id; ctx->sub->views[shader_type].old_ids[i] = id;
} }
if (ctx->sub->rs_state.point_quad_rasterization) {
if (vrend_state.use_core_profile == false) {
if (ctx->sub->rs_state.sprite_coord_enable & (1 << i))
glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
else
glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_FALSE);
}
}
(*sampler_id)++; (*sampler_id)++;
} }
index++; index++;

Loading…
Cancel
Save