Home | History | Annotate | Download | only in main

Lines Matching full:paramname

305     for (paramName, paramType, paramMaxVecSize, paramConvertToType, paramValidValues, paramValueConversion) in params:
318 passthroughDeclarationString += ", %s %s" % (paramType, paramName)
319 passthroughCallString += ", %s" % paramName
323 variables.append(" %s converted_%s;" % (paramConvertToType, paramName))
328 conversionCodeOutgoing.append(" converted_%s = (%s) %s;" % (paramName, paramConvertToType, paramName))
332 if (" int convert_%s_value = 1;" % paramName) not in variables:
333 variables.append(" int convert_%s_value = 1;" % paramName)
336 conversionCodeOutgoing.append(" if (convert_%s_value) {" % paramName)
337 conversionCodeOutgoing.append(" converted_%s = %s;" % (paramName, ConvertValue(paramName, paramBaseType, paramConvertToType)))
339 conversionCodeOutgoing.append(" converted_%s = (%s) %s;" % (paramName, paramConvertToType, paramName))
342 conversionCodeOutgoing.append(" converted_%s = %s;" % (paramName, ConvertValue(paramName, paramBaseType, paramConvertToType)))
351 passthroughDeclarationString += ", %s %s %s" % (paramConvertToType, " ".join(paramTypeModifiers), paramName)
352 passthroughCallString += ", converted_%s" % paramName
364 variables.append(" unsigned int n_%s = %d;" % (paramName, paramMaxVecSize))
367 variables.append(" %s converted_%s[%d];" % (paramConvertToType, paramName, paramMaxVecSize))
373 conversionCodeOutgoing.append(" for (i = 0; i < n_%s; i++) {" % paramName)
374 conversionCodeOutgoing.append(" converted_%s[i] = (%s) %s[i];" % (paramName, paramConvertToType, paramName))
379 if (" int convert_%s_value = 1;" % paramName) not in variables:
380 variables.append(" int convert_%s_value = 1;" % paramName)
382 conversionCodeOutgoing.append(" if (convert_%s_value) {" % paramName)
383 conversionCodeOutgoing.append(" for (i = 0; i < n_%s; i++) {" % paramName)
384 conversionCodeOutgoing.append(" converted_%s[i] = %s;" % (paramName, ConvertValue("%s[i]" % paramName, paramBaseType, paramConvertToType)))
387 conversionCodeOutgoing.append(" for (i = 0; i < n_%s; i++) {" % paramName)
388 paramName, paramConvertToType, paramName))
392 conversionCodeOutgoing.append(" for (i = 0; i < n_%s; i++) {" % paramName)
393 conversionCodeOutgoing.append(" converted_%s[i] = %s;" % (paramName, ConvertValue("%s[i]" % paramName, paramBaseType, paramConvertToType)))
408 conversionCodeIncoming.append(" for (i = 0; i < n_%s; i++) {" % paramName)
409 conversionCodeIncoming.append(" %s[i] = (%s) converted_%s[i];" % (paramName, paramConvertToType, paramName))
414 if (" int convert_%s_value = 1;" % paramName) not in variables:
415 variables.append(" int convert_%s_value = 1;" % paramName)
418 conversionCodeIncoming.append(" if (convert_%s_value) {" % paramName)
419 conversionCodeIncoming.append(" for (i = 0; i < n_%s; i++) {" % paramName)
420 conversionCodeIncoming.append(" %s[i] = %s;" % (paramName, ConvertValue("converted_%s[i]" % paramName, paramConvertToType, paramBaseType)))
423 conversionCodeIncoming.append(" for (i = 0; i < n_%s; i++) {" % paramName)
424 conversionCodeIncoming.append(" %s[i] = (%s) converted_%s[i];" % (paramName, paramBaseType, paramName))
428 conversionCodeIncoming.append(" for (i = 0; i < n_%s; i++) {" % paramName)
429 conversionCodeIncoming.append(" %s[i] = %s;" % (paramName, ConvertValue("converted_%s[i]" % paramName, paramConvertToType, paramBaseType)))
434 passthroughDeclarationString += ", %s %s %s" % (paramConvertToType, " ".join(paramTypeModifiers), paramName)
435 passthroughCallString += ", converted_%s" % paramName
453 switchCode.append(" switch(%s) {" % paramName)
532 switchCode.append(' _mesa_error(_mesa_get_current_context(), %s, "gl%s(%s=0x%s)", %s);' % (errorCode, funcName, paramName, "%x", paramName))
561 switchCode.append(' _mesa_error(_mesa_get_current_context(), %s, "gl%s(%s)");' % (errorCode, funcName, paramName))
563 switchCode.append(' _mesa_error(_mesa_get_current_context(), %s, "gl%s(%s=%s)", %s);' % (errorCode, funcName, paramName, formatString, paramName))