turnip: implement VK_EXT_custom_border_color
[mesa.git] / src / gallium / drivers / freedreno / a6xx / fd6_emit.c
index 67d9a8f13ae7b8099ac243d18b028b2bbd6cc7e5..c055ac0d2f4a41c9df6be843ac3bfe3d6126c7c2 100644 (file)
@@ -346,7 +346,7 @@ fd6_emit_textures(struct fd_pipe *pipe, struct fd_ringbuffer *ring,
                        OUT_RING(state, sampler->texsamp0);
                        OUT_RING(state, sampler->texsamp1);
                        OUT_RING(state, sampler->texsamp2 |
-                               A6XX_TEX_SAMP_2_BCOLOR_OFFSET((i + bcolor_offset) * sizeof(struct bcolor_entry)));
+                               A6XX_TEX_SAMP_2_BCOLOR(i + bcolor_offset));
                        OUT_RING(state, sampler->texsamp3);
                        needs_border |= sampler->needs_border;
                }