[Mesa-dev] [PATCH] radeonsi: fix GLSL textureGrad(samplerCube*) functions
Michel Dänzer
michel at daenzer.net
Thu Jul 23 20:43:12 PDT 2015
On 24.07.2015 08:11, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> +4 piglits
Awesome! I love piglits. :)
Just some cosmetic issues:
> @@ -174,7 +174,8 @@ static inline LLVMValueRef bitcast(
>
> void radeon_llvm_emit_prepare_cube_coords(struct lp_build_tgsi_context * bld_base,
> struct lp_build_emit_data * emit_data,
> - LLVMValueRef *coords_arg);
> + LLVMValueRef *coords_arg,
> + LLVMValueRef *derivs_arg);
Indentation is inconsistent between these two lines.
> + derivs[axis*2+i] =
> + LLVMBuildFSub(builder, shifted_coords[i],
> + coords[i], "");
I think the arithmetic is more readable with spaces:
derivs[axis * 2 + i] =
But I'm fine with this either way.
With the inconsistent indentation fixed,
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list