diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-04-09 14:03:02 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-04-09 16:32:47 +0100 |
commit | d3808b1b1f34dbb826b99102786d94e1baf9d667 (patch) | |
tree | c03be26b133dd89b1ce611c663460a97cb0e4147 /src/gallium/auxiliary/gallivm | |
parent | efae8f33f2c34666c614d5b00cab618425de6f66 (diff) |
util: Add dedicated depth-stencil packing/unpacking functions.
Depth-stencil manually written given that each one is very close to
be a special case.
u_format_zs.c's still untested.
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_format_soa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c index 459a6bfe3f..2b66162eb4 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c @@ -307,7 +307,7 @@ lp_build_fetch_rgba_soa(LLVMBuilderRef builder, } else { /* - * Fallback to calling util_format_description::fetch_float for each + * Fallback to calling util_format_description::fetch_rgba_float for each * pixel. * * This is definitely not the most efficient way of fetching pixels, as @@ -324,10 +324,10 @@ lp_build_fetch_rgba_soa(LLVMBuilderRef builder, assert(type.floating); - util_snprintf(name, sizeof name, "util_format_%s_fetch_float", format_desc->short_name); + util_snprintf(name, sizeof name, "util_format_%s_fetch_rgba_float", format_desc->short_name); /* - * Declare and bind format_desc->fetch_float(). + * Declare and bind format_desc->fetch_rgba_float(). */ function = LLVMGetNamedFunction(module, name); @@ -348,7 +348,7 @@ lp_build_fetch_rgba_soa(LLVMBuilderRef builder, assert(LLVMIsDeclaration(function)); - LLVMAddGlobalMapping(lp_build_engine, function, format_desc->fetch_float); + LLVMAddGlobalMapping(lp_build_engine, function, format_desc->fetch_rgba_float); } for (chan = 0; chan < 4; ++chan) { @@ -361,7 +361,7 @@ lp_build_fetch_rgba_soa(LLVMBuilderRef builder, ""); /* - * Invoke format_desc->fetch_float() for each pixel and insert the result + * Invoke format_desc->fetch_rgba_float() for each pixel and insert the result * in the SoA vectors. */ |