freedreno/a5xx: remove unneeded assert
authorRob Clark <robdclark@gmail.com>
Mon, 15 May 2017 18:08:16 +0000 (14:08 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 16 May 2017 20:34:21 +0000 (16:34 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_emit.c

index 0e2d204484f8143635e53685c029e61c07d481ba..d959f09fc20aa25cf8828e779e3f801ddd59144c 100644 (file)
@@ -174,15 +174,12 @@ struct PACKED bcolor_entry {
 
 #define FD5_BORDER_COLOR_SIZE        0x60
 #define FD5_BORDER_COLOR_UPLOAD_SIZE (2 * PIPE_MAX_SAMPLERS * FD5_BORDER_COLOR_SIZE)
-#define FD5_BORDER_COLOR_OFFSET      8   /* TODO probably should be dynamic */
 
 static void
 setup_border_colors(struct fd_texture_stateobj *tex, struct bcolor_entry *entries)
 {
        unsigned i, j;
 
-       debug_assert(tex->num_samplers < FD5_BORDER_COLOR_OFFSET);  // TODO
-
        for (i = 0; i < tex->num_samplers; i++) {
                struct bcolor_entry *e = &entries[i];
                struct pipe_sampler_state *sampler = tex->samplers[i];