summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-05-06 09:20:23 -0600
committerBrian Paul <brianp@vmware.com>2016-05-17 19:20:36 -0600
commit5888c47cc968a6b6d8ee6c85f43380b0d5970744 (patch)
tree3c79c1fce21205c93dd75f6abb238a8be58c6bb4
parent18260d05820eca971873407e939007c12600660c (diff)
downloadexternal_mesa3d-5888c47cc968a6b6d8ee6c85f43380b0d5970744.zip
external_mesa3d-5888c47cc968a6b6d8ee6c85f43380b0d5970744.tar.gz
external_mesa3d-5888c47cc968a6b6d8ee6c85f43380b0d5970744.tar.bz2
cso: remove / add some comments
Signed-off-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_context.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c
index 4cf3b2b..5206aca 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -51,8 +51,7 @@
/**
- * Info related to samplers and sampler views.
- * We have one of these for fragment samplers and another for vertex samplers.
+ * Per-shader sampler information.
*/
struct sampler_info
{
@@ -1154,7 +1153,6 @@ unsigned cso_get_aux_vertex_buffer_slot(struct cso_context *ctx)
}
-/**************** fragment/vertex sampler view state *************************/
enum pipe_error
cso_single_sampler(struct cso_context *ctx, unsigned shader_stage,
@@ -1199,6 +1197,9 @@ cso_single_sampler(struct cso_context *ctx, unsigned shader_stage,
}
+/**
+ * Send staged sampler state to the driver.
+ */
void
cso_single_sampler_done(struct cso_context *ctx, unsigned shader_stage)
{
@@ -1234,9 +1235,6 @@ cso_set_samplers(struct cso_context *ctx,
unsigned i;
enum pipe_error temp, error = PIPE_OK;
- /* TODO: fastpath
- */
-
for (i = 0; i < nr; i++) {
temp = cso_single_sampler(ctx, shader_stage, i, templates[i]);
if (temp != PIPE_OK)