diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index bd5f44a4..e645a1a4 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -4073,15 +4073,10 @@ int gr_gk20a_add_zbc(struct gk20a *g, struct gr_gk20a *gr, | |||
4073 | 4073 | ||
4074 | if (c_tbl->ref_cnt && c_tbl->format == zbc_val->format && | 4074 | if (c_tbl->ref_cnt && c_tbl->format == zbc_val->format && |
4075 | memcmp(c_tbl->color_ds, zbc_val->color_ds, | 4075 | memcmp(c_tbl->color_ds, zbc_val->color_ds, |
4076 | sizeof(zbc_val->color_ds)) == 0) { | 4076 | sizeof(zbc_val->color_ds)) == 0 && |
4077 | memcmp(c_tbl->color_l2, zbc_val->color_l2, | ||
4078 | sizeof(zbc_val->color_l2)) == 0) { | ||
4077 | 4079 | ||
4078 | if (memcmp(c_tbl->color_l2, zbc_val->color_l2, | ||
4079 | sizeof(zbc_val->color_l2))) { | ||
4080 | nvgpu_err(g, | ||
4081 | "zbc l2 and ds color don't match with existing entries"); | ||
4082 | ret = -EINVAL; | ||
4083 | goto err_mutex; | ||
4084 | } | ||
4085 | added = true; | 4080 | added = true; |
4086 | c_tbl->ref_cnt++; | 4081 | c_tbl->ref_cnt++; |
4087 | ret = 0; | 4082 | ret = 0; |